Skip to content

Commit

Permalink
Fix Simple Logger Log Function (#3631)
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Guardian authored Jul 30, 2023
1 parent 383ea9a commit 75b4b06
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 75b4b06

Please sign in to comment.