Skip to content

Commit 046e94e

Browse files
authored
chore: Fixed error logger in interruption controller (#7795)
1 parent 280eaec commit 046e94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/interruption/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (c *Controller) Reconcile(ctx context.Context) (reconcile.Result, error) {
108108
msg, e := c.parseMessage(sqsMessages[i])
109109
if e != nil {
110110
// If we fail to parse, then we should delete the message but still log the error
111-
log.FromContext(ctx).Error(err, "failed parsing interruption message")
111+
log.FromContext(ctx).Error(e, "failed parsing interruption message")
112112
errs[i] = c.deleteMessage(ctx, sqsMessages[i])
113113
return
114114
}

0 commit comments

Comments
 (0)