Skip to content

Commit

Permalink
chore: add moar debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Aug 16, 2024
1 parent dbc081c commit a4cea84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/cloudstackmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ func (reconciler *CloudStackMachineReconciler) SetupWithManager(ctx context.Cont

oldMachine := e.ObjectOld.(*infrav1.CloudStackMachine).DeepCopy()
newMachine := e.ObjectNew.(*infrav1.CloudStackMachine).DeepCopy()

log.V(4).Info("Evaluating CloudStackMachine event filter update predicate")

// Ignore resource version because they are unique
oldMachine.ObjectMeta.ResourceVersion = ""
newMachine.ObjectMeta.ResourceVersion = ""
Expand Down
1 change: 1 addition & 0 deletions controllers/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ func CloudStackIsolatedNetworkToControlPlaneCloudStackMachines(c client.Client,
csMachines := mapFunc(ctx, &m)
results = append(results, csMachines...)
}
log.V(4).Info("returning the following requests", "requests", results)

return results
}, nil
Expand Down

0 comments on commit a4cea84

Please sign in to comment.