diff options
Diffstat (limited to 'weed/filer/configuration.go')
| -rw-r--r-- | weed/filer/configuration.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/filer/configuration.go b/weed/filer/configuration.go index db4af1559..b8e6c1007 100644 --- a/weed/filer/configuration.go +++ b/weed/filer/configuration.go @@ -1,7 +1,7 @@ package filer import ( - "github.com/seaweedfs/seaweedfs/weed/glog" + "github.com/seaweedfs/seaweedfs/weed/util/log" "github.com/seaweedfs/seaweedfs/weed/util" "os" "reflect" @@ -22,10 +22,10 @@ func (f *Filer) LoadConfiguration(config *util.ViperProxy) (isFresh bool) { if config.GetBool(store.GetName() + ".enabled") { store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore) if err := store.Initialize(config, store.GetName()+"."); err != nil { - glog.Fatalf("failed to initialize store for %s: %+v", store.GetName(), err) + log.Fatalf("failed to initialize store for %s: %+v", store.GetName(), err) } isFresh = f.SetStore(store) - glog.V(0).Infof("configured filer store to %s", store.GetName()) + log.V(3).Infof("configured filer store to %s", store.GetName()) hasDefaultStoreConfigured = true break } @@ -70,16 +70,16 @@ func (f *Filer) LoadConfiguration(config *util.ViperProxy) (isFresh bool) { store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore) if err := store.Initialize(config, key+"."); err != nil { - glog.Fatalf("Failed to initialize store for %s: %+v", key, err) + log.Fatalf("Failed to initialize store for %s: %+v", key, err) } location := config.GetString(key + ".location") if location == "" { - glog.Errorf("path-specific filer store needs %s", key+".location") + log.Errorf("path-specific filer store needs %s", key+".location") os.Exit(-1) } f.Store.AddPathSpecificStore(location, storeId, store) - glog.V(0).Infof("configure filer %s for %s", store.GetName(), location) + log.V(3).Infof("configure filer %s for %s", store.GetName(), location) } return @@ -92,7 +92,7 @@ func validateOneEnabledStore(config *util.ViperProxy) { 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()) } } } |
