Skip to content

Commit

Permalink
Remove stat log which occurs too often
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Durbin <andrewd@zededa.com>
  • Loading branch information
andrewd-zededa authored and eriknordmark committed Jun 26, 2024
1 parent 3a02e3f commit 18a15c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/pillar/diskmetrics/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func SizeFromDir(log *base.LogObject, dirname string) (uint64, error) {
// Use full syscall.Stat_t to get the allocated size
allocatedBytes, err := StatAllocatedBytes(filename)
if err != nil {
log.Errorf("StatAllocatedBytes: %s failed %s treating as fully allocated\n", filename, err)
allocatedBytes = uint64(location.Size())
}
// Fully Allocated: don't use allocated bytes
Expand Down

0 comments on commit 18a15c5

Please sign in to comment.