Skip to content

Commit

Permalink
Fix excessive trace logging in the machine health check controller
Browse files Browse the repository at this point in the history
  • Loading branch information
cnmcavoy committed Sep 13, 2023
1 parent e92e712 commit 65fc98c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ func (r *Reconciler) getNodeFromMachine(ctx context.Context, clusterClient clien

// healthCheckTargets health checks a slice of targets
// and gives a data to measure the average health.
func (r *Reconciler) healthCheckTargets(targets []healthCheckTarget, logger logr.Logger, timeoutForMachineToHaveNode metav1.Duration) ([]healthCheckTarget, []healthCheckTarget, []time.Duration) {
func (r *Reconciler) healthCheckTargets(targets []healthCheckTarget, l logr.Logger, timeoutForMachineToHaveNode metav1.Duration) ([]healthCheckTarget, []healthCheckTarget, []time.Duration) {
var nextCheckTimes []time.Duration
var unhealthy []healthCheckTarget
var healthy []healthCheckTarget

for _, t := range targets {
logger = logger.WithValues("Target", t.string())
logger := l.WithValues("Target", t.string())
logger.V(3).Info("Health checking target")
needsRemediation, nextCheck := t.needsRemediation(logger, timeoutForMachineToHaveNode)

Expand Down

0 comments on commit 65fc98c

Please sign in to comment.