This commit is contained in:
Roy Crihfield 2024-06-16 19:33:25 +08:00
parent 09dec31585
commit a96fb1603c

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()))
}