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

@@ -938,7 +938,10 @@ func (i *scannerItem) applyHealing(ctx context.Context, o ObjectLayer, oi Object
ScanMode: scanMode,
}
res, err := o.HealObject(ctx, i.bucket, i.objectPath(), oi.VersionID, healOpts)
if err != nil && !errors.Is(err, NotImplemented{}) {
if err != nil {
if errors.Is(err, NotImplemented{}) || isErrObjectNotFound(err) || isErrVersionNotFound(err) {
err = nil
}
logger.LogIf(ctx, err)
return 0
}