remove spurious logging for object not found (#15842)

This commit is contained in:
Harshavardhana
2022-10-12 04:28:21 -07:00
committed by GitHub
parent e3cb0278ce
commit 41e1654f9a
4 changed files with 38 additions and 13 deletions

View File

@@ -375,7 +375,9 @@ func (es *erasureSingle) listPath(ctx context.Context, o *listPathOptions) (entr
entries.truncate(0)
o.ID = ""
if err != nil {
logger.LogIf(ctx, fmt.Errorf("Resuming listing from drives failed %w, proceeding to do raw listing", err))
if !(isErrObjectNotFound(err) || errors.Is(err, IncompleteBody{}) || isErrVersionNotFound(err)) {
logger.LogIf(ctx, fmt.Errorf("Resuming listing from drives failed %w, proceeding to do raw listing", err))
}
}
}