mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
[skip ci]Fix error log output format in log.go (#13101)
Signed-off-by: JackLCL <chenglong.li@zilliz.com>
This commit is contained in:
parent
333f495e72
commit
26225a56d1
@ -93,7 +93,7 @@ func InitLoggerWithWriteSyncer(cfg *Config, output zapcore.WriteSyncer, opts ...
|
||||
level := zap.NewAtomicLevel()
|
||||
err := level.UnmarshalText([]byte(cfg.Level))
|
||||
if err != nil {
|
||||
return nil, nil, fmt.Errorf("InitLoggerWithWriteSyncer UnmarshalText cfg.Level err:%w", err)
|
||||
return nil, nil, fmt.Errorf("initLoggerWithWriteSyncer UnmarshalText cfg.Level err:%w", err)
|
||||
}
|
||||
core := NewTextCore(newZapTextEncoder(cfg), output, level)
|
||||
opts = append(cfg.buildOptions(output), opts...)
|
||||
|
Loading…
Reference in New Issue
Block a user