From c2b97b0f204cc4fed4423fa30eb903a07613fae8 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 15 Feb 2024 10:01:41 +0300 Subject: [PATCH] fixup logger/slog Signed-off-by: Vasiliy Tolstov --- logger/slog/slog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/slog/slog.go b/logger/slog/slog.go index 176efcc5..2c0ac7c3 100644 --- a/logger/slog/slog.go +++ b/logger/slog/slog.go @@ -140,7 +140,7 @@ func (s *slogLogger) Fields(attrs ...interface{}) logger.Logger { handleOpt := &slog.HandlerOptions{ ReplaceAttr: nl.renameAttr, - Level: s.leveler, + Level: nl.leveler, AddSource: true, }