Do not log errFileNotFound error (#5853)

This commit is contained in:
Krishna Srinivas
2018-04-25 11:46:49 -07:00
committed by Harshavardhana
parent fe126de98b
commit 6831177394
2 changed files with 9 additions and 3 deletions

View File

@@ -163,7 +163,9 @@ func fsStat(ctx context.Context, statLoc string) (os.FileInfo, error) {
}
fi, err := os.Stat((statLoc))
if err != nil {
logger.LogIf(ctx, err)
if err != errFileNotFound {
logger.LogIf(ctx, err)
}
return nil, err
}