1
0

fix: disabling logging completely now works

This commit is contained in:
kolaente
2022-02-19 17:42:32 +01:00
parent 8cb92b3924
commit 22e3f242a3
4 changed files with 52 additions and 16 deletions

View File

@ -389,10 +389,10 @@ func InitConfig() {
MetricsEnabled.Set(true)
}
err = viper.ReadInConfig()
if viper.ConfigFileUsed() != "" {
log.Printf("Using config file: %s", viper.ConfigFileUsed())
err = viper.ReadInConfig()
if err != nil {
log.Println(err.Error())
log.Println("Using default config.")