Skip to content

Commit

Permalink
Add logging for test race debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Olshevski committed Dec 12, 2023
1 parent a803a98 commit 5a79000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/controllers/reconciliation/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/reconstitution/reconstituter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a79000

Please sign in to comment.