Merge pull request #45 from anytypeio/fix-logger-console
fix default logger encoding config
This commit is contained in:
commit
4687b1f805
@ -35,7 +35,7 @@ func (l Config) ApplyGlobal() {
|
||||
} else {
|
||||
conf = zap.NewDevelopmentConfig()
|
||||
}
|
||||
var encConfig zapcore.EncoderConfig
|
||||
encConfig := conf.EncoderConfig
|
||||
switch l.Format {
|
||||
case PlaintextOutput:
|
||||
encConfig.EncodeLevel = zapcore.CapitalLevelEncoder
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user