Skip to content

Commit

Permalink
chore: make logging more clear for interruption delete (#4079)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Jun 19, 2023
1 parent a8e828a commit 4f0795b
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 @@ -210,7 +210,7 @@ func (c *Controller) deleteMachine(ctx context.Context, machine *v1alpha5.Machin
if err := c.kubeClient.Delete(ctx, machine); err != nil {
return client.IgnoreNotFound(fmt.Errorf("deleting the node on interruption message, %w", err))
}
logging.FromContext(ctx).Infof("deleted machine from interruption message")
logging.FromContext(ctx).Infof("initiating delete for machine from interruption message")
c.recorder.Publish(interruptionevents.TerminatingOnInterruption(node, machine)...)
metrics.MachinesTerminatedCounter.With(prometheus.Labels{
metrics.ReasonLabel: terminationReasonLabel,
Expand Down

0 comments on commit 4f0795b

Please sign in to comment.