Skip to content

Commit

Permalink
fix: fix log line on consistency errors (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran authored Aug 5, 2024
1 parent fdb3813 commit 1a0ecd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/nodeclaim/consistency/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (c *Controller) checkConsistency(ctx context.Context, nodeClaim *v1.NodeCla
return fmt.Errorf("checking node with %T, %w", check, err)
}
for _, issue := range issues {
log.FromContext(ctx).Error(err, "consistency error")
log.FromContext(ctx).Error(fmt.Errorf(string(issue)), "consistency error")
c.recorder.Publish(FailedConsistencyCheckEvent(nodeClaim, string(issue)))
}
hasIssues = hasIssues || (len(issues) > 0)
Expand Down

0 comments on commit 1a0ecd5

Please sign in to comment.