diff --git a/conf/configuration.go b/conf/configuration.go index fb540f1c6..5e3f55cbb 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -117,8 +117,13 @@ func Load() { os.Exit(1) } + // Print current configuration if log level is Debug if log.CurrentLevel() >= log.LevelDebug { - fmt.Println(log.Redact(pretty.Sprintf("Loaded configuration from '%s': %# v", Server.ConfigFile, Server))) + prettyConf := pretty.Sprintf("Loaded configuration from '%s': %# v", Server.ConfigFile, Server) + if Server.EnableLogRedacting { + prettyConf = log.Redact(prettyConf) + } + fmt.Println(prettyConf) } // Call init hooks