Merge pull request #10588 from filecoin-project/fix/file-does-not-exsist-logs
fix: log: Stop logging `file does not exists`
This commit is contained in:
commit
3af5ef1167
@ -1,6 +1,7 @@
|
|||||||
package paths
|
package paths
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -103,7 +104,9 @@ func (c *cachedLocalStorage) DiskUsage(path string) (int64, error) {
|
|||||||
go func() {
|
go func() {
|
||||||
du, err := c.base.DiskUsage(path)
|
du, err := c.base.DiskUsage(path)
|
||||||
if err != nil {
|
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{
|
resCh <- diskUsageResult{
|
||||||
usage: du,
|
usage: du,
|
||||||
|
Loading…
Reference in New Issue
Block a user