mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +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
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
r.Level.SetLevel(level)
|
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
|
// InitTestLogger initializes a logger for unit tests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user