Skip to content

Commit

Permalink
Merge pull request #47 from Kuadrant/fix-controller-log-message
Browse files Browse the repository at this point in the history
fix: controller debug message - sotw has not changed
  • Loading branch information
guicassolato authored Oct 25, 2024
2 parents d33de83 + c48f76a commit ec853f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ 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
Expand Down

0 comments on commit ec853f9

Please sign in to comment.