Skip to content

Commit faca51a

Browse files
benjaminknauerodrotbohm
authored andcommitted
GH-564 - Use error log in PersistentApplicationEventMulticaster if listener not found.
Related pull request: GH-548.
1 parent 77f9db1 commit faca51a

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
@@ -187,7 +187,7 @@ private void invokeTargetListener(TargetEventPublication publication) {
187187
.map(it -> executeListenerWithCompletion(publication, it)) //
188188
.orElseGet(() -> {
189189

190-
LOGGER.debug("Listener {} not found!", publication.getTargetIdentifier());
190+
LOGGER.error("Listener {} not found! Skipping invocation and leaving event publication {} incomplete.", publication.getTargetIdentifier(), publication.getIdentifier());
191191
return null;
192192
});
193193
}

0 commit comments

Comments
 (0)