diff options
Diffstat (limited to 'log/log.go')
-rw-r--r-- | log/log.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/log/log.go b/log/log.go index 63c6b23..053288a 100644 --- a/log/log.go +++ b/log/log.go @@ -82,12 +82,13 @@ func Configure(isProduction bool) *Logger { var enc zapcore.Encoder if isProduction { cfg = zap.NewProductionEncoderConfig() + cfg.TimeKey = "" enc = zaplogfmt.NewEncoder(cfg) } else { cfg = prettyconsole.NewEncoderConfig() + cfg.TimeKey = "" enc = prettyconsole.NewEncoder(cfg) } - cfg.TimeKey = "" log := zap.New( zapfilter.NewFilteringCore(zapcore.NewCore(enc, os.Stderr, zap.DebugLevel), filter), ) |