mirror of https://github.com/milvus-io/milvus.git
fix: log can not reduce level (#28750)
relate: https://github.com/milvus-io/milvus/issues/28749 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>pull/28760/head
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