@@ -210,7 +210,7 @@ func (r *MetalStackMachineReconciler) clusterToMetalStackMachine(log logr.Logger
210210 return nil
211211 }
212212
213- log := log .WithValues ("cluster" , cluster )
213+ log := log .WithValues ("cluster" , cluster . Name , "namespace" , cluster . Namespace )
214214
215215 infraMachineList := & v1alpha1.MetalStackMachineList {}
216216 err := r .Client .List (ctx , infraMachineList , & client.ListOptions {
@@ -226,7 +226,7 @@ func (r *MetalStackMachineReconciler) clusterToMetalStackMachine(log logr.Logger
226226
227227 var reqs []ctrl.Request
228228 for _ , infraMachine := range infraMachineList .Items {
229- log .Info ("cluster watch reconcile" , "infraMachine" , infraMachine .Name )
229+ log .Info ("cluster changed, reconcile" , "infraMachine" , infraMachine .Name )
230230 reqs = append (reqs , ctrl.Request {
231231 NamespacedName : client .ObjectKeyFromObject (& infraMachine ),
232232 })
@@ -243,7 +243,7 @@ func (r *MetalStackMachineReconciler) metalStackClusterToMetalStackMachine(log l
243243 return nil
244244 }
245245
246- log := log .WithValues ("infraCluster" , infraCluster )
246+ log := log .WithValues ("infraCluster" , infraCluster . Name , "namespace" , infraCluster . Namespace )
247247
248248 clusterName , ok := infraCluster .Labels [clusterv1 .ClusterNameLabel ]
249249 if ! ok {
@@ -264,7 +264,7 @@ func (r *MetalStackMachineReconciler) metalStackClusterToMetalStackMachine(log l
264264
265265 var reqs []ctrl.Request
266266 for _ , infraMachine := range infraMachineList .Items {
267- log .Info ("mscluster watch reconcile" , "infraMachine" , infraMachine .Name )
267+ log .Info ("metalstackcluster changed, reconcile" , "infraMachine" , infraMachine .Name )
268268 reqs = append (reqs , ctrl.Request {
269269 NamespacedName : client .ObjectKeyFromObject (& infraMachine ),
270270 })
@@ -281,7 +281,7 @@ func (r *MetalStackMachineReconciler) machineToMetalStackMachine(log logr.Logger
281281 return nil
282282 }
283283
284- log := log .WithValues ("machine" , machine )
284+ log := log .WithValues ("machine" , machine . Name , "namespace" , machine . Namespace )
285285
286286 clusterName , ok := machine .Labels [clusterv1 .ClusterNameLabel ]
287287 if ! ok {
@@ -312,7 +312,7 @@ func (r *MetalStackMachineReconciler) machineToMetalStackMachine(log logr.Logger
312312
313313 var reqs []ctrl.Request
314314 for _ , infraMachine := range infraMachineList .Items {
315- log .Info ("machine watch reconcile" , "infraMachine" , infraMachine .Name )
315+ log .Info ("machine changed, reconcile" , "infraMachine" , infraMachine .Name )
316316 reqs = append (reqs , ctrl.Request {
317317 NamespacedName : client .ObjectKeyFromObject (& infraMachine ),
318318 })
0 commit comments