Skip to content

Commit

Permalink
Print which manifest were updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Oct 22, 2019
1 parent a474726 commit 766d6ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/cvo/sync_worker.go
Expand Up @@ -585,11 +585,16 @@ func (w *SyncWorker) apply(ctx context.Context, payloadUpdate *payload.Update, w
continue
}

if _, err := task.Run(ctx, version, w.builder, work.State); err != nil {
updated, err := task.Run(ctx, version, w.builder, work.State)
if err != nil {
return err
}
cr.Inc()
klog.V(4).Infof("Done syncing for %s", task)
postfix := ""
if updated {
postfix = " UPDATED"
}
klog.V(4).Infof("Done syncing for %s%s", task, postfix)
}
return nil
})
Expand Down

0 comments on commit 766d6ec

Please sign in to comment.