From 11716fbf6f670288f9c95cf62276c330e7d61db4 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 22 Oct 2020 13:33:45 -0700 Subject: [PATCH] make reading error more obvious --- weed/util/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/config.go b/weed/util/config.go index 7b6e92f08..e4a684549 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -27,7 +27,7 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) { glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed()) if err := viper.MergeInConfig(); err != nil { // Handle errors reading the config file - glog.V(1).Infof("Reading %s: %v", viper.ConfigFileUsed(), err) + glog.V(0).Infof("Reading %s: %v", viper.ConfigFileUsed(), err) if required { glog.Fatalf("Failed to load %s.toml file from current directory, or $HOME/.seaweedfs/, or /etc/seaweedfs/"+ "\n\nPlease use this command to generate the default %s.toml file\n"+