Skip to content

Commit

Permalink
fix: worker: don't log noraml storage stat calls
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed May 27, 2022
1 parent 44d415a commit a448b22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extern/sector-storage/stores/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ func (p *path) stat(ls LocalStorage) (fsutil.FsStat, error) {
}
}

log.Infow("storage stat", "took", time.Now().Sub(start), "reservations", len(p.reservations))
if time.Now().Sub(start) > 5*time.Second {
log.Warnw("slow storage stat", "took", time.Now().Sub(start), "reservations", len(p.reservations))
}

return stat, err
}
Expand Down

0 comments on commit a448b22

Please sign in to comment.