Skip to content

Commit e51d439

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent cce78e4 commit e51d439

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/controller/ControllerEventSource.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,14 @@ private void handleOnAddOrUpdate(
147147
ResourceAction action, T oldCustomResource, T newCustomResource) {
148148
var handling =
149149
temporaryResourceCache.onAddOrUpdateEvent(action, newCustomResource, oldCustomResource);
150-
if (handling != EventHandling.NEW) {
150+
if (handling == EventHandling.NEW) {
151151
handleEvent(ResourceAction.UPDATED, newCustomResource, oldCustomResource, null);
152+
} else if (log.isDebugEnabled()) {
153+
log.debug(
154+
"{} event propagation for action: {} resource id: {} ",
155+
handling,
156+
action,
157+
ResourceID.fromResource(newCustomResource));
152158
}
153159
}
154160

0 commit comments

Comments
 (0)