diff --git a/pkg/sync/syncer.go b/pkg/sync/syncer.go index 22af37ff..7bb13297 100644 --- a/pkg/sync/syncer.go +++ b/pkg/sync/syncer.go @@ -872,6 +872,7 @@ func (s *syncer) SyncGrantExpansion(ctx context.Context) error { return err } } else { + l.Info("Finished loading entitlement graph", zap.Int("edges", len(entitlementGraph.Edges))) entitlementGraph.Loaded = true } @@ -1427,6 +1428,11 @@ func (s *syncer) expandGrantsForEntitlements(ctx context.Context) error { l = l.With(zap.Int("depth", graph.Depth)) l.Debug("expandGrantsForEntitlements: start", zap.Any("graph", graph)) + actions := len(graph.Actions) + if actions%250 == 0 || actions < 10 { + l.Info("Expanding grants", zap.Int("actions", actions)) + } + actionsDone, err := s.runGrantExpandActions(ctx) if err != nil { l.Error("expandGrantsForEntitlements: error running graph actions", zap.Error(err))