From a29434dba11af39880ff73a7d434a3cb8c9a0f04 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 3 Dec 2024 13:48:32 +0100 Subject: log: Disable timestamps correctly --- log/log.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), ) -- cgit 1.4.1