From 78be58b090a5b936585662083b35b06c191616a8 Mon Sep 17 00:00:00 2001 From: Amund Tenstad Date: Wed, 21 Apr 2021 16:12:53 +0200 Subject: [PATCH] Do not log content of secrets --- internal/pkg/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/controller/controller.go b/internal/pkg/controller/controller.go index efed3228..6012ada1 100644 --- a/internal/pkg/controller/controller.go +++ b/internal/pkg/controller/controller.go @@ -145,7 +145,7 @@ func (c *Controller) handleErr(err error, key interface{}) { // This controller retries 5 times if something goes wrong. After that, it stops trying. if c.queue.NumRequeues(key) < 5 { - logrus.Errorf("Error syncing events %v: %v", key, err) + logrus.Errorf("Error syncing events: %v", err) // Re-enqueue the key rate limited. Based on the rate limiter on the // queue and the re-enqueue history, the key will be processed later again.