diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | plugins/logger/config.go | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 82086de1..c1a171e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ v2.0.3 (-.-.2021) ------------------- - 🐛 Fix: slow last response when reached `max_jobs` limit. +- 📜 Add a new `clean` mode for the `logger` plugin to keep the stderr log message of the worker unmodified. v2.0.2 (06.04.2021) ------------------- diff --git a/plugins/logger/config.go b/plugins/logger/config.go index 52594bc4..284ab6ea 100644 --- a/plugins/logger/config.go +++ b/plugins/logger/config.go @@ -50,6 +50,16 @@ func (cfg *Config) BuildLogger() (*zap.Logger, error) { zCfg = zap.NewProductionConfig() case "development": zCfg = zap.NewDevelopmentConfig() + case "clean": + zCfg = zap.Config{ + Level: zap.NewAtomicLevelAt(zap.DebugLevel), + Encoding: "console", + EncoderConfig: zapcore.EncoderConfig{ + MessageKey: "message", + }, + OutputPaths: []string{"stderr"}, + ErrorOutputPaths: []string{"stderr"}, + } default: zCfg = zap.Config{ Level: zap.NewAtomicLevelAt(zap.DebugLevel), |