From cbb05a2d5232e0b13a77f787d98043ac0ccc8e97 Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:26:33 +0800 Subject: [PATCH] fix: [Cherry-pick] log can not reduce level (#28770) relate: https://github.com/milvus-io/milvus/issues/28749 pr: https://github.com/milvus-io/milvus/pull/28750 Signed-off-by: aoiasd --- pkg/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index 2a9d1947c1..2ef1c95ed1 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -96,7 +96,7 @@ func InitLogger(cfg *Config, opts ...zap.Option) (*zap.Logger, *ZapProperties, e return nil, nil, err } r.Level.SetLevel(level) - return debugL.WithOptions(zap.IncreaseLevel(level), zap.AddCallerSkip(1)), r, nil + return debugL.WithOptions(zap.AddCallerSkip(1)), r, nil } // InitTestLogger initializes a logger for unit tests