mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
fix: log can not reduce level (#28750)
relate: https://github.com/milvus-io/milvus/issues/28749 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
4bd426dbe7
commit
ce2436127c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user