Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update the Simple Logger Log Function to log the Correct Caller #3631

Merged
merged 2 commits into from
Jul 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions server/logging/simple_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ func (l *StructuredLogger) Err(format string, a ...interface{}) {
func (l *StructuredLogger) Log(level LogLevel, format string, a ...interface{}) {
switch level {
case Debug:
l.Debug(format, a...)
l.z.Debugf(format, a...)
case Info:
l.Info(format, a...)
l.z.Infof(format, a...)
case Warn:
l.Warn(format, a...)
l.z.Warnf(format, a...)
case Error:
l.Err(format, a...)
l.z.Errorf(format, a...)
}
}

Expand Down