From 1664fd8bb16833bf463caabfd20001d21de1d536 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Wed, 2 Aug 2023 17:06:03 +0100 Subject: [PATCH] Avoid logging errors twice during transitioned objects expiration (#17782) --- cmd/bucket-lifecycle.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/bucket-lifecycle.go b/cmd/bucket-lifecycle.go index 835c1a8e7..9ad879f7a 100644 --- a/cmd/bucket-lifecycle.go +++ b/cmd/bucket-lifecycle.go @@ -403,13 +403,11 @@ func expireTransitionedObject(ctx context.Context, objectAPI ObjectLayer, oi *Ob TierName: oi.TransitionedObject.Tier, } if err := globalTierJournal.AddEntry(entry); err != nil { - logger.LogIf(ctx, err) return err } // Delete metadata on source, now that data in remote tier has been // marked for deletion. if _, err := objectAPI.DeleteObject(ctx, oi.Bucket, oi.Name, opts); err != nil { - logger.LogIf(ctx, err) return err }