Skip to content

Commit

Permalink
Merge pull request #10588 from filecoin-project/fix/file-does-not-exs…
Browse files Browse the repository at this point in the history
…ist-logs

fix: log: Stop logging `file does not exists`
  • Loading branch information
magik6k authored Mar 30, 2023
2 parents 139bde3 + a999469 commit 3af5ef1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storage/paths/localstorage_cached.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package paths

import (
"os"
"sync"
"time"

Expand Down Expand Up @@ -103,7 +104,9 @@ func (c *cachedLocalStorage) DiskUsage(path string) (int64, error) {
go func() {
du, err := c.base.DiskUsage(path)
if err != nil {
log.Errorw("error getting disk usage", "path", path, "error", err)
if !os.IsNotExist(err) {
log.Errorw("error getting disk usage", "path", path, "error", err)
}
}
resCh <- diskUsageResult{
usage: du,
Expand Down

0 comments on commit 3af5ef1

Please sign in to comment.