summaryrefslogtreecommitdiff
path: root/modules/logging
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2021-06-04 16:15:43 -0400
committerGitHub <noreply@github.com>2021-06-04 14:15:43 -0600
commit94b712009a52fd2dba6295667d359a9a3c952d31 (patch)
tree6fce0f744f0623261a58b6826f26467591af038d /modules/logging
parent7b500e74b40714874278816dcce128a4b8e7389d (diff)
logging: Actually use `level_key` (#4189)
Diffstat (limited to 'modules/logging')
-rw-r--r--modules/logging/encoders.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/logging/encoders.go b/modules/logging/encoders.go
index ab68f5e..40e86bd 100644
--- a/modules/logging/encoders.go
+++ b/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
}