all repos — x @ a29434dba11af39880ff73a7d434a3cb8c9a0f04

Experiments and stuff

log: Disable timestamps correctly

Alan Pearce
commit

a29434dba11af39880ff73a7d434a3cb8c9a0f04

parent

5465cb5315da8ed2f5ca64ceba14163c9fa7a975

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M log/log.golog/log.go
@@ -82,12 +82,13 @@ var cfg zapcore.EncoderConfig
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), )