Merge pull request #45 from anytypeio/fix-logger-console

fix default logger encoding config
This commit is contained in:
Roman Khafizianov 2023-03-07 19:47:32 +01:00 committed by GitHub
commit 4687b1f805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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