fix: disabling logging completely now works

This commit is contained in:
kolaente 2022-02-19 17:42:32 +01:00
parent 8cb92b3924
commit 22e3f242a3
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
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.")