Skip to content

Commit

Permalink
fix: use loggerWrapper instead of defaultLoggerWrapper in Debug (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeram-narayanan committed Feb 28, 2024
1 parent 4e82379 commit cb8cee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/slog/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (l *loggerWrapper) Warn(msg string, args ...any) {

// Debug logs a line with level debug using a loggerWrapper instance.
func (l *loggerWrapper) Debug(msg string, args ...any) {
level.Debug(log.With(defaultLoggerWrapper.logger, defaultMsgKey, msg)).Log(args...)
level.Debug(log.With(l.logger, defaultMsgKey, msg)).Log(args...)
}

// Error logs a line with level error using a loggerWrapper instance.
Expand Down

0 comments on commit cb8cee3

Please sign in to comment.