aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/configuration.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
commit6c9156b25f8b1c28fb0cc909310a20aeeec0e087 (patch)
tree343e30d98e46a081aa57adfc334b807d0b3255dc /weed/filer/configuration.go
parent9add554feb53706d1d878cc9636d234e622b8a80 (diff)
downloadseaweedfs-origin/logrus.tar.xz
seaweedfs-origin/logrus.zip
switch to logrusorigin/logrus
losing filename and line number. Critical for debugging.
Diffstat (limited to 'weed/filer/configuration.go')
-rw-r--r--weed/filer/configuration.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer/configuration.go b/weed/filer/configuration.go
index 3dce67d6d..27c5d9344 100644
--- a/weed/filer/configuration.go
+++ b/weed/filer/configuration.go
@@ -3,7 +3,7 @@ package filer
import (
"os"
- "github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util/log"
"github.com/spf13/viper"
)
@@ -18,11 +18,11 @@ func (f *Filer) LoadConfiguration(config *viper.Viper) {
for _, store := range Stores {
if config.GetBool(store.GetName() + ".enabled") {
if err := store.Initialize(config, store.GetName()+"."); err != nil {
- glog.Fatalf("Failed to initialize store for %s: %+v",
+ log.Fatalf("Failed to initialize store for %s: %+v",
store.GetName(), err)
}
f.SetStore(store)
- glog.V(0).Infof("Configure filer for %s", store.GetName())
+ log.Infof("Configure filer for %s", store.GetName())
return
}
}
@@ -43,7 +43,7 @@ func validateOneEnabledStore(config *viper.Viper) {
if enabledStore == "" {
enabledStore = store.GetName()
} else {
- glog.Fatalf("Filer store is enabled for both %s and %s", enabledStore, store.GetName())
+ log.Fatalf("Filer store is enabled for both %s and %s", enabledStore, store.GetName())
}
}
}