Skip to content

Commit c5c0586

Browse files
benjaminknauerodrotbohm
authored andcommitted
GH-565 - Use error log in PersistentApplicationEventMulticaster if listener not found.
Related pull request: GH-548.
1 parent 7fc2e39 commit c5c0586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-modulith-events/spring-modulith-events-core/src/main/java/org/springframework/modulith/events/support/PersistentApplicationEventMulticaster.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private void invokeTargetListener(EventPublication publication) {
164164
.map(it -> executeListenerWithCompletion(publication, it)) //
165165
.orElseGet(() -> {
166166

167-
LOGGER.debug("Listener {} not found!", publication.getTargetIdentifier());
167+
LOGGER.error("Listener {} not found! Skipping invocation and leaving event publication {} incomplete.", publication.getTargetIdentifier(), publication.getIdentifier());
168168
return null;
169169
});
170170
}

0 commit comments

Comments
 (0)