Skip to content

Commit f7a9497

Browse files
committed
PR correction in logging
1 parent 36c6127 commit f7a9497

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

controllers/ibmpowervsmachine_controller.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ func (r *IBMPowerVSMachineReconciler) handleLoadBalancerPoolMemberConfiguration(
212212
}
213213

214214
func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerVSMachineScope) (ctrl.Result, error) {
215-
ctx := context.Background()
216-
log := ctrl.LoggerFrom(ctx)
217215
machineScope.Info("Reconciling IBMPowerVSMachine")
218216

219217
if !machineScope.Cluster.Status.InfrastructureReady {
@@ -306,9 +304,10 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV
306304
}
307305

308306
if util.IsControlPlaneMachine(machineScope.Machine) {
309-
log.V(3).Info("skipping loadbalancer configuration as it is not control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name)
307+
machineScope.Info("Configuring loadbalancer configuration for control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name)
310308
return r.handleLoadBalancerPoolMemberConfiguration(machineScope)
311309
}
310+
machineScope.Info("skipping loadbalancer configuration as it is not control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name)
312311

313312
return ctrl.Result{}, nil
314313
}

0 commit comments

Comments
 (0)