aboutsummaryrefslogtreecommitdiff
path: root/weed/util/config.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-25 17:19:17 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-25 17:19:20 -0700
commitdce1f02c9efcf78f05e7f81f3cc116e594591642 (patch)
tree393d8ffb33ade1ded77e7fea00ab3afa2150fa86 /weed/util/config.go
parent35ca9638c422c63383f922ace499472d1b897c77 (diff)
downloadseaweedfs-dce1f02c9efcf78f05e7f81f3cc116e594591642.tar.xz
seaweedfs-dce1f02c9efcf78f05e7f81f3cc116e594591642.zip
filer.backup: backup to local directory optionally is incremental
fixed one issue with https://github.com/chrislusf/seaweedfs/issues/2084
Diffstat (limited to 'weed/util/config.go')
-rw-r--r--weed/util/config.go3
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
}