fix: worker: don't log noraml storage stat calls
This commit is contained in:
parent
44d415a1e2
commit
a448b229a8
4
extern/sector-storage/stores/local.go
vendored
4
extern/sector-storage/stores/local.go
vendored
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user