This commit is contained in:
2024-07-11 19:29:02 +08:00
parent 09dec31585
commit a96fb1603c
+1 -1
View File
@@ -235,7 +235,7 @@ func initConfig() {
if cfgFile != "" {
viper.SetConfigFile(cfgFile)
if err := viper.ReadInConfig(); err == nil {
log.Printf("Using config file: %s", viper.ConfigFileUsed())
log.Infof("Using config file: %s", viper.ConfigFileUsed())
} else {
log.Fatal(fmt.Sprintf("Couldn't read config file: %s", err.Error()))
}