aboutsummaryrefslogtreecommitdiff
path: root/weed/util/config.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-05-22 09:54:31 -0700
committerchrislu <chris.lu@gmail.com>2025-05-22 09:54:31 -0700
commit0d62be44846354c3c37b857028297edd4b8df17b (patch)
treec89320a7d58351030f1b740c7267f56bf0206429 /weed/util/config.go
parentd8c574a5ef1a811f9a0d447097d9edfcc0c1d84c (diff)
downloadseaweedfs-origin/changing-to-zap.tar.xz
seaweedfs-origin/changing-to-zap.zip
Diffstat (limited to 'weed/util/config.go')
-rw-r--r--weed/util/config.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/weed/util/config.go b/weed/util/config.go
index e5b32d512..0f56203fc 100644
--- a/weed/util/config.go
+++ b/weed/util/config.go
@@ -6,7 +6,7 @@ import (
"github.com/spf13/viper"
- "github.com/seaweedfs/seaweedfs/weed/glog"
+ "github.com/seaweedfs/seaweedfs/weed/util/log"
)
var (
@@ -50,12 +50,12 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) {
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)
+ log.V(2).Infof("Reading %s: %v", viper.ConfigFileUsed(), err)
} else {
- glog.Fatalf("Reading %s: %v", viper.ConfigFileUsed(), err)
+ log.Fatalf("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/"+
+ log.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"+
" weed scaffold -config=%s -output=.\n\n\n",
configFileName, configFileName, configFileName)
@@ -63,7 +63,7 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) {
return false
}
}
- glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed())
+ log.V(2).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed())
return true
}