From 5a79000ec29e93c0402be390bf2af439201ef8c7 Mon Sep 17 00:00:00 2001 From: Jordan Olshevski Date: Mon, 11 Dec 2023 22:00:38 +0000 Subject: [PATCH] Add logging for test race debugging --- internal/controllers/reconciliation/controller.go | 1 + internal/reconstitution/reconstituter.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/controllers/reconciliation/controller.go b/internal/controllers/reconciliation/controller.go index 277b50b2..c4bc37cc 100644 --- a/internal/controllers/reconciliation/controller.go +++ b/internal/controllers/reconciliation/controller.go @@ -64,6 +64,7 @@ func (c *Controller) Reconcile(ctx context.Context, req *reconstitution.Request) if err != nil { return ctrl.Result{}, fmt.Errorf("getting composition: %w", err) } + logger.V(1).Info("TODO syncing", "resource", req.ResourceRef) if comp.Status.CurrentState == nil { // we don't log here because it would be too noisy diff --git a/internal/reconstitution/reconstituter.go b/internal/reconstitution/reconstituter.go index 5e41dad0..855dc4d6 100644 --- a/internal/reconstitution/reconstituter.go +++ b/internal/reconstitution/reconstituter.go @@ -74,6 +74,7 @@ func (r *reconstituter) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R func (r *reconstituter) populateCache(ctx context.Context, comp *apiv1.Composition, synthesis *apiv1.Synthesis) error { logger := logr.FromContextOrDiscard(ctx) + logger.Info(fmt.Sprintf("TODO CACHING SYNTH %s", comp.Name)) if synthesis == nil || synthesis.ResourceSliceCount == nil { // a nil resourceSliceCount means synthesis is still in progress