Skip to content

Commit

Permalink
🔊 logs contain systemID (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdjgs authored Jun 4, 2024
1 parent 2c9aba7 commit 59dd125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controller/styra/system_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ func (r *SystemReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
return ctrl.Result{}, errors.Wrap(err, "unable to fetch System")
}

log = log.WithValues("systemID", system.Status.ID)

if !labels.ControllerClassMatches(&system, r.Config.ControllerClass) {
log.Info("This is not a System we are managing. Skipping reconciliation.")
r.deleteMetric(req)
Expand Down

0 comments on commit 59dd125

Please sign in to comment.