Change duration encoder for logging
This commit is contained in:
parent
bd6eafd9f7
commit
b2edb2b4bf
@ -210,7 +210,7 @@ func setupLoggers(cfg config.Config) *loggerCollection {
|
|||||||
level := zap.NewAtomicLevelAt(zap.InfoLevel)
|
level := zap.NewAtomicLevelAt(zap.InfoLevel)
|
||||||
logEncoderCfg.EncodeLevel = zapcore.CapitalColorLevelEncoder
|
logEncoderCfg.EncodeLevel = zapcore.CapitalColorLevelEncoder
|
||||||
logEncoderCfg.EncodeTime = zapcore.ISO8601TimeEncoder
|
logEncoderCfg.EncodeTime = zapcore.ISO8601TimeEncoder
|
||||||
logEncoderCfg.EncodeDuration = zapcore.NanosDurationEncoder
|
logEncoderCfg.EncodeDuration = zapcore.StringDurationEncoder
|
||||||
rootLoggerCfg := &zap.Config{
|
rootLoggerCfg := &zap.Config{
|
||||||
Level: level,
|
Level: level,
|
||||||
OutputPaths: []string{"stdout"},
|
OutputPaths: []string{"stdout"},
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Version = "v0.1.18"
|
var Version = "v0.1.19"
|
||||||
var Build string
|
var Build string
|
||||||
|
|
||||||
func FullVersion() string {
|
func FullVersion() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user