Skip to content

Commit b23b18d

Browse files
authored
chore: mute some reclaim check log (#3469)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
1 parent 58b612f commit b23b18d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

client/daemon/storage/local_storage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,8 @@ func (t *localTaskStore) CanReclaim() bool {
516516
// task soft cache time reached
517517
access := time.Unix(0, t.lastAccess.Load())
518518
reclaim := access.Add(t.expireTime).Before(now)
519-
t.Debugf("reclaim check, last access: %v, reclaim: %v", access, reclaim)
519+
// TODO add a option to avoid print log too frequently
520+
// t.Debugf("reclaim check, last access: %v, reclaim: %v", access, reclaim)
520521
if reclaim || t.Header == nil {
521522
return reclaim
522523
}

client/daemon/storage/storage_manager.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,9 @@ func (s *storageManager) TryGC() (bool, error) {
881881
if ok {
882882
// just calculate not reclaimed task
883883
totalNotMarkedSize += lts.ContentLength
884-
logger.Debugf("task %s/%s not reach gc time",
885-
key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
884+
// TODO add a option to avoid print log too frequently
885+
// logger.Debugf("task %s/%s not reach gc time",
886+
// key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
886887
}
887888
}
888889
return true

0 commit comments

Comments
 (0)