From cb8cee331a739cf385d9123ffb05dbddba74eff2 Mon Sep 17 00:00:00 2001 From: sreeram-narayanan <93913825+sreeram-narayanan@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:24:08 +0530 Subject: [PATCH] fix: use loggerWrapper instead of defaultLoggerWrapper in Debug (#66) --- log/slog/slog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/slog/slog.go b/log/slog/slog.go index 8245c2b..25d2e84 100644 --- a/log/slog/slog.go +++ b/log/slog/slog.go @@ -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.