Skip to content

Commit

Permalink
ARTEMIS-4020 Adding check on %s or %d on log.processor
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Sep 28, 2022
1 parent 9873fcc commit 4cfc4cb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,10 @@ private static void verifyMessagePlaceholders(final String message, final Execut
throw new IllegalArgumentException("Invalid placeholder argument {" + tupple + "} on message \'" + message + "\' as part of " + holder + "\nreplace it by {}");
}
});

if (message.contains("%s") || message.contains("%d")) {
throw new IllegalArgumentException("Cannot use %s or %d in loggers. Please use {} on message \'" + message + "\'");
}
}

private static void verifyIdNotProcessedPreviously(final Integer id, final String message, final HashMap<Integer, String> processedMessages) {
Expand Down

0 comments on commit 4cfc4cb

Please sign in to comment.