Skip to content

Commit

Permalink
chore(backport release-1.0): fix(directives): log error to surface re…
Browse files Browse the repository at this point in the history
…ason for ArgoCD update (akuity#2936)

Co-authored-by: Hidde Beydals <hiddeco@users.noreply.github.com>
  • Loading branch information
akuitybot and hiddeco authored Nov 16, 2024
1 parent 814398c commit 6655061
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/directives/argocd_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ func (a *argocdUpdater) runPromotionStep(
continue
}

// Log the error, as it contains information about why we need to
// perform an update.
if err != nil {
logger.Debug(err.Error())
}

// Perform the update.
if err = a.syncApplicationFn(
ctx,
Expand Down

0 comments on commit 6655061

Please sign in to comment.