From f7a9497c3e42cc26b7f63b12493ecb2a92915dec Mon Sep 17 00:00:00 2001 From: carmal891 Date: Mon, 21 Oct 2024 19:31:42 +0530 Subject: [PATCH] PR correction in logging --- controllers/ibmpowervsmachine_controller.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/ibmpowervsmachine_controller.go b/controllers/ibmpowervsmachine_controller.go index 03aa76712..0d2b253dd 100644 --- a/controllers/ibmpowervsmachine_controller.go +++ b/controllers/ibmpowervsmachine_controller.go @@ -212,8 +212,6 @@ func (r *IBMPowerVSMachineReconciler) handleLoadBalancerPoolMemberConfiguration( } func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerVSMachineScope) (ctrl.Result, error) { - ctx := context.Background() - log := ctrl.LoggerFrom(ctx) machineScope.Info("Reconciling IBMPowerVSMachine") if !machineScope.Cluster.Status.InfrastructureReady { @@ -306,9 +304,10 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV } if util.IsControlPlaneMachine(machineScope.Machine) { - log.V(3).Info("skipping loadbalancer configuration as it is not control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name) + machineScope.Info("Configuring loadbalancer configuration for control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name) return r.handleLoadBalancerPoolMemberConfiguration(machineScope) } + machineScope.Info("skipping loadbalancer configuration as it is not control plane machine", "machineName", machineScope.IBMPowerVSMachine.Name) return ctrl.Result{}, nil }