From 4d31417b7568b0c00ac68f4400750f98ad71b30e Mon Sep 17 00:00:00 2001 From: Jesse Suen Date: Sun, 23 Aug 2020 18:15:11 -0700 Subject: [PATCH] fix: add missing log message when a controller's syncHandler returns error --- utils/controller/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/controller/controller.go b/utils/controller/controller.go index c9f9fb28b9..4f64ce004d 100644 --- a/utils/controller/controller.go +++ b/utils/controller/controller.go @@ -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.