Skip to content

Commit

Permalink
chore: Fixed error logger in interruption controller (#7795)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai9920 authored Feb 24, 2025
1 parent 280eaec commit 046e94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/interruption/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (c *Controller) Reconcile(ctx context.Context) (reconcile.Result, error) {
msg, e := c.parseMessage(sqsMessages[i])
if e != nil {
// If we fail to parse, then we should delete the message but still log the error
log.FromContext(ctx).Error(err, "failed parsing interruption message")
log.FromContext(ctx).Error(e, "failed parsing interruption message")
errs[i] = c.deleteMessage(ctx, sqsMessages[i])
return
}
Expand Down

0 comments on commit 046e94e

Please sign in to comment.