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 {
|
} else {
|
||||||
conf = zap.NewDevelopmentConfig()
|
conf = zap.NewDevelopmentConfig()
|
||||||
}
|
}
|
||||||
var encConfig zapcore.EncoderConfig
|
encConfig := conf.EncoderConfig
|
||||||
switch l.Format {
|
switch l.Format {
|
||||||
case PlaintextOutput:
|
case PlaintextOutput:
|
||||||
encConfig.EncodeLevel = zapcore.CapitalLevelEncoder
|
encConfig.EncodeLevel = zapcore.CapitalLevelEncoder
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user