Fix config dump

This commit is contained in:
wpetit 2020-05-22 16:10:31 +02:00
parent c2666086cb
commit 4049896b99
2 changed files with 9 additions and 9 deletions

View File

@ -67,14 +67,6 @@ func main() {
}
}
logger.Info(
ctx,
"starting",
logger.F("gitRef", GitRef),
logger.F("projectVersion", ProjectVersion),
logger.F("buildDate", BuildDate),
)
// Load configuration file if defined, use default configuration otherwise
var conf *config.Config
@ -121,6 +113,14 @@ func main() {
)
}
logger.Info(
ctx,
"starting",
logger.F("gitRef", GitRef),
logger.F("projectVersion", ProjectVersion),
logger.F("buildDate", BuildDate),
)
logger.Debug(ctx, "setting log format", logger.F("format", conf.Log.Format))
logger.SetFormat(conf.Log.Format)

View File

@ -64,7 +64,7 @@ func NewDumpDefault() *Config {
func NewDefault() *Config {
return &Config{
Log: LogConfig{
Level: logger.LevelWarn,
Level: logger.LevelInfo,
Format: logger.FormatHuman,
},
HTTP: HTTPConfig{