diff options
Diffstat (limited to 'weed/util')
| -rw-r--r-- | weed/util/config.go | 6 | ||||
| -rw-r--r-- | weed/util/constants.go | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/weed/util/config.go b/weed/util/config.go index 7b6e92f08..6acf21c12 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -27,7 +27,11 @@ 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) + logLevel := glog.Level(0) + if strings.Contains(err.Error(), "Not Found") { + logLevel = 1 + } + glog.V(logLevel).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"+ diff --git a/weed/util/constants.go b/weed/util/constants.go index 5cfa58fbc..177c20a60 100644 --- a/weed/util/constants.go +++ b/weed/util/constants.go @@ -5,7 +5,7 @@ import ( ) var ( - VERSION = fmt.Sprintf("%s %d.%02d", sizeLimit, 2, 05) + VERSION = fmt.Sprintf("%s %d.%02d", sizeLimit, 2, 07) COMMIT = "" ) |
