diff options
Diffstat (limited to 'weed/util/config.go')
| -rw-r--r-- | weed/util/config.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/util/config.go b/weed/util/config.go index ee805f26a..ae9397340 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -26,8 +26,6 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) { viper.AddConfigPath("/usr/local/etc/seaweedfs/") // search path for bsd-style config directory in viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in - glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed()) - if err := viper.MergeInConfig(); err != nil { // Handle errors reading the config file if strings.Contains(err.Error(), "Not Found") { glog.V(1).Infof("Reading %s: %v", viper.ConfigFileUsed(), err) @@ -43,6 +41,7 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) { return false } } + glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed()) return true } |
