Change duration encoder for logging

This commit is contained in:
Torjus Håkestad 2021-11-03 21:28:02 +01:00
parent bd6eafd9f7
commit b2edb2b4bf
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ func setupLoggers(cfg config.Config) *loggerCollection {
level := zap.NewAtomicLevelAt(zap.InfoLevel)
logEncoderCfg.EncodeLevel = zapcore.CapitalColorLevelEncoder
logEncoderCfg.EncodeTime = zapcore.ISO8601TimeEncoder
logEncoderCfg.EncodeDuration = zapcore.NanosDurationEncoder
logEncoderCfg.EncodeDuration = zapcore.StringDurationEncoder
rootLoggerCfg := &zap.Config{
Level: level,
OutputPaths: []string{"stdout"},

View File

@ -5,7 +5,7 @@ import (
"runtime"
)
var Version = "v0.1.18"
var Version = "v0.1.19"
var Build string
func FullVersion() string {