Browse Source

logging: Actually use `level_key` (#4189)

master
Francis Lavoie 4 years ago
committed by GitHub
parent
commit
94b712009a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/logging/encoders.go

3
modules/logging/encoders.go

@ -264,6 +264,9 @@ func (lec *LogEncoderConfig) ZapcoreEncoderConfig() zapcore.EncoderConfig {
if lec.MessageKey != nil {
cfg.MessageKey = *lec.MessageKey
}
if lec.LevelKey != nil {
cfg.LevelKey = *lec.LevelKey
}
if lec.TimeKey != nil {
cfg.TimeKey = *lec.TimeKey
}

Loading…
Cancel
Save