Skip to content

Commit 199f171

Browse files
Taoaozwodrotbohm
authored andcommitted
GH-456 - Fix potentially broken debug log output in PersistentApplicationEventMulticaster.
Swapped the ternary operator conditions for the 'message' variable assignment. Fixes GH-456.
1 parent bbae486 commit 199f171

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
@@ -195,7 +195,7 @@ private void invokeTargetListener(TargetEventPublication publication) {
195195
private void doResubmitUncompletedPublicationsOlderThan(@Nullable Duration duration,
196196
Predicate<EventPublication> filter) {
197197

198-
var message = duration != null ? "" : " older than %s".formatted(duration);
198+
var message = duration != null ? " older than %s".formatted(duration): "";;
199199
var registry = this.registry.get();
200200

201201
LOGGER.debug("Looking up incomplete event publications {}… ", message);

0 commit comments

Comments
 (0)