From a96fb1603c2b350c4b79479c8e3f1cc2dff25c10 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 16 Jun 2024 19:33:25 +0800 Subject: [PATCH] log fix --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 209ca22..61a57b7 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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())) }