GH-435 - Fix potentially broken debug log output in PersistentApplicationEventMulticaster.

Swapped the ternary operator conditions for the 'message' variable assignment.

Fixes GH-435.
This commit is contained in:
TAO
2023-12-22 18:43:26 +08:00
committed by Oliver Drotbohm
parent a85a788ad2
commit 16cd708adf

View File

@@ -195,7 +195,7 @@ public class PersistentApplicationEventMulticaster extends AbstractApplicationEv
private void doResubmitUncompletedPublicationsOlderThan(@Nullable Duration duration,
Predicate<EventPublication> filter) {
var message = duration != null ? "" : " older than %s".formatted(duration);
var message = duration != null ? " older than %s".formatted(duration): "";;
var registry = this.registry.get();
LOGGER.debug("Looking up incomplete event publications {}… ", message);