From 0baf3d38c2e18e9477f835a470462ac6123562ea Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 13 Sep 2022 10:33:28 -0700 Subject: [PATCH] adjust logs --- weed/storage/needle_map_leveldb.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/weed/storage/needle_map_leveldb.go b/weed/storage/needle_map_leveldb.go index b93b00ebc..e77651b78 100644 --- a/weed/storage/needle_map_leveldb.go +++ b/weed/storage/needle_map_leveldb.go @@ -150,15 +150,7 @@ func (m *LevelDbNeedleMap) Put(key NeedleId, offset Offset, size Size) error { func getWatermark(db *leveldb.DB) uint64 { data, err := db.Get(watermarkKey, nil) if err != nil || len(data) != 8 { - glog.Warningf("get watermark from db error: %v, %d", err, len(data)) - /* - if !strings.Contains(strings.ToLower(err.Error()), "not found") { - err = setWatermark(db, 0) - if err != nil { - glog.Errorf("failed to set watermark: %v", err) - } - } - */ + glog.V(1).Infof("read previous watermark from db: %v, %d", err, len(data)) return 0 } return util.BytesToUint64(data)