From 6e77deffcf259a94071d10995c3d1d2a8f2cbcc4 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Fri, 25 Oct 2024 12:28:11 +0200 Subject: [PATCH] fix: controller debug message - sotw has not changed Signed-off-by: Guilherme Cassolato --- controller/controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controller/controller.go b/controller/controller.go index 43abd79..ab70a30 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -331,9 +331,10 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store] events = append(events, deleteEvents...) if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events - c.logger.V(1).Info("state of the world has not changed") c.propagate(events) - } + } else { + c.logger.V(1).Info("state of the world has not changed") + } return objs }