Skip to content

Commit 0a81964

Browse files
committed
migrated openstackcluster_controller.go to structured logging syntax
1 parent 434cfe2 commit 0a81964

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/openstackcluster_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (r *OpenStackClusterReconciler) Reconcile(ctx context.Context, req ctrl.Req
9696
log = log.WithValues("cluster", cluster.Name)
9797

9898
if annotations.IsPaused(cluster, openStackCluster) {
99-
log.Info("OpenStackCluster or linked Cluster is marked as paused. Won't reconcile")
99+
log.Info("OpenStackCluster or linked Cluster is marked as paused. Not reconciling")
100100
return reconcile.Result{}, nil
101101
}
102102

@@ -193,7 +193,7 @@ func (r *OpenStackClusterReconciler) reconcileDelete(ctx context.Context, scope
193193

194194
// Cluster is deleted so remove the finalizer.
195195
controllerutil.RemoveFinalizer(openStackCluster, infrav1.ClusterFinalizer)
196-
scope.Logger().Info("Reconciled Cluster delete successfully")
196+
scope.Logger().Info("Reconciled Cluster deleted successfully")
197197
return ctrl.Result{}, nil
198198
}
199199

@@ -304,7 +304,7 @@ func reconcileNormal(scope scope.Scope, cluster *clusterv1.Cluster, openStackClu
304304
openStackCluster.Status.Ready = true
305305
openStackCluster.Status.FailureMessage = nil
306306
openStackCluster.Status.FailureReason = nil
307-
scope.Logger().Info("Reconciled Cluster create successfully")
307+
scope.Logger().Info("Reconciled Cluster created successfully")
308308
return reconcile.Result{}, nil
309309
}
310310

@@ -610,7 +610,7 @@ func (r *OpenStackClusterReconciler) SetupWithManager(ctx context.Context, mgr c
610610
}
611611

612612
if annotations.IsExternallyManaged(c) {
613-
log.V(4).Info("OpenStackCluster is externally managed, skipping mapping.")
613+
log.V(4).Info("OpenStackCluster is externally managed, skipping mapping")
614614
return nil
615615
}
616616
return requests

0 commit comments

Comments
 (0)