From f9dcf56465837b210e0b60a6b3a3c929c66c1f6b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 4 Mar 2019 09:02:58 -0800 Subject: [PATCH] adjust log level for loading configurations --- weed/server/filer_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index 2ace0a7ea..83998a009 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -92,10 +92,10 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) { viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in - glog.V(0).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed()) + 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(0).Infof("Reading %s: %v", viper.ConfigFileUsed(), err) + glog.V(1).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 follow this example and add a filer.toml file to "+