Skip to content

Commit

Permalink
fix: add missing log message when a controller's syncHandler returns …
Browse files Browse the repository at this point in the history
…error (#658)
  • Loading branch information
jessesuen committed Sep 4, 2020
1 parent 233526a commit 3fd2316
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func processNextWorkItem(workqueue workqueue.RateLimitingInterface, objType stri
// Run the syncHandler, passing it the namespace/name string of the
// Rollout resource to be synced.
if err := runSyncHandler(); err != nil {
logCtx.Errorf("%s syncHandler error: %v", objType, err)
metricsServer.IncError(namespace, name, objType)
// Put the item back on
// the workqueue to handle any transient errors.
Expand Down

0 comments on commit 3fd2316

Please sign in to comment.