diff --git a/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java index 8507399dea96c..b51be9c405304 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java @@ -449,7 +449,7 @@ public void accept(LogRecord logRecord, Consumer logRecordConsumer) { Object[] np = p != null ? Arrays.copyOf(p, p.length + 1) : new Object[1]; np[np.length - 1] = decoratedString; elr.setParameters(np); - elr.setMessage(elr.getMessage() + "\n\n%" + (np.length - 1) + "$s", + elr.setMessage(elr.getMessage() + "\n\n%" + np.length + "$s", ExtLogRecord.FormatStyle.PRINTF); } case NO_FORMAT -> {