GH-549 - Use error log in PersistentApplicationEventMulticaster if listener not found.

Related pull request: GH-548.
This commit is contained in:
Benjamin Knauer
2024-04-10 10:31:19 +02:00
committed by Oliver Drotbohm
parent 0361503fd6
commit 32f4cbca4d

View File

@@ -187,7 +187,7 @@ public class PersistentApplicationEventMulticaster extends AbstractApplicationEv
.map(it -> executeListenerWithCompletion(publication, it)) //
.orElseGet(() -> {
LOGGER.debug("Listener {} not found!", publication.getTargetIdentifier());
LOGGER.error("Listener {} not found! Skipping invocation and leaving event publication {} incomplete.", publication.getTargetIdentifier(), publication.getIdentifier());
return null;
});
}