From 7573ba6db657a30a95ad7c2a5fd88a46c6e86596 Mon Sep 17 00:00:00 2001 From: tnextday Date: Tue, 5 Apr 2016 12:52:03 +0800 Subject: [PATCH] less log --- weed/storage/disk_location.go | 2 +- weed/storage/volume.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index e056e9b00..f883c4e78 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -39,7 +39,7 @@ func (l *DiskLocation) LoadExistingVolumes(needleMapKind NeedleMapType) { if !l.HasVolume(vid) { if v, e := NewVolume(l.Directory, collection, vid, needleMapKind, nil); e == nil { l.AddVolume(vid, v) - glog.V(0).Infof("data file %s, v=%d size=%d ttl=%s", l.Directory+"/"+name, v.Version(), v.Size(), v.Ttl.String()) + glog.V(1).Infof("data file %s, v=%d size=%d ttl=%s", l.Directory+"/"+name, v.Version(), v.Size(), v.Ttl.String()) } else { glog.V(0).Infof("new volume %s error %s", name, e) } diff --git a/weed/storage/volume.go b/weed/storage/volume.go index 466dbbc17..8ec698fd4 100644 --- a/weed/storage/volume.go +++ b/weed/storage/volume.go @@ -111,17 +111,17 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind } switch needleMapKind { case NeedleMapInMemory: - glog.V(0).Infoln("loading index file", fileName+".idx", "readonly", v.readOnly) + glog.V(1).Infoln("loading index file", fileName+".idx", "readonly", v.readOnly) if v.nm, e = LoadNeedleMap(indexFile); e != nil { glog.V(0).Infof("loading index %s error: %v", fileName+".idx", e) } case NeedleMapLevelDb: - glog.V(0).Infoln("loading leveldb file", fileName+".ldb") + glog.V(1).Infoln("loading leveldb file", fileName+".ldb") if v.nm, e = NewLevelDbNeedleMap(fileName+".ldb", indexFile); e != nil { glog.V(0).Infof("loading leveldb %s error: %v", fileName+".ldb", e) } case NeedleMapBoltDb: - glog.V(0).Infoln("loading boltdb file", fileName+".bdb") + glog.V(1).Infoln("loading boltdb file", fileName+".bdb") if v.nm, e = NewBoltDbNeedleMap(fileName+".bdb", indexFile); e != nil { glog.V(0).Infof("loading boltdb %s error: %v", fileName+".bdb", e) }