Skip to content

Commit

Permalink
GH-435 - Fix potentially broken debug log output in PersistentApplica…
Browse files Browse the repository at this point in the history
…tionEventMulticaster.

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

Fixes GH-435.
  • Loading branch information
Taoaozw authored and odrotbohm committed Jan 16, 2024
1 parent a85a788 commit 16cd708
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private void invokeTargetListener(TargetEventPublication publication) {
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);
Expand Down

0 comments on commit 16cd708

Please sign in to comment.