This commit is contained in:
Victor Edvardsson 2024-04-14 20:30:28 +02:00
parent 9a50396982
commit a72f22377e
No known key found for this signature in database

View file

@ -48,7 +48,7 @@ func SetDefaultLoggerConfig(cfgMode string, cfgFolder string, cfgLevel log.Level
logLevel = cfgLevel
log.SetLevel(logLevel)
if LogFormat == 'json' {
if LogFormat == "json" {
logFormatter = &log.JSONFormatter{}
} else {
logFormatter = &log.TextFormatter{TimestampFormat: time.RFC3339, FullTimestamp: true, ForceColors: forceColors}