Skip to content

Commit 5adaa87

Browse files
committed
Don't log remaining action count if actions remaining is less than 10. Just log every 10 seconds max.
1 parent d525b7b commit 5adaa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sync/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (p *ProgressCounts) LogGrantsProgress(ctx context.Context, resourceType str
147147

148148
func (p *ProgressCounts) LogExpandProgress(ctx context.Context, actions []*expand.EntitlementGraphAction) {
149149
actionsLen := len(actions)
150-
if time.Since(p.LastActionLog) < maxLogFrequency && actionsLen > 10 {
150+
if time.Since(p.LastActionLog) < maxLogFrequency {
151151
return
152152
}
153153
p.LastActionLog = time.Now()

0 commit comments

Comments
 (0)