From 1b5ed3d1a4d28d0291123cd5414bacdb1ca5d824 Mon Sep 17 00:00:00 2001 From: Patrick Zeller Date: Wed, 21 Aug 2019 16:45:46 +0200 Subject: [PATCH] NO-JIRA fix log message format in ActiveMQRALogger MessageFormat uses single quotes to escape so string ${0} was logged. --- .../java/org/apache/activemq/artemis/ra/ActiveMQRALogger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRALogger.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRALogger.java index 720c1fd035..455d8aa024 100644 --- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRALogger.java +++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRALogger.java @@ -155,10 +155,10 @@ public interface ActiveMQRALogger extends BasicLogger { void invalidAcknowledgementMode(String mode); @LogMessage(level = Logger.Level.WARN) - @Message(id = 153004, value = "Invalid number of session (negative) '{0}', defaulting to '${1}'.", format = Message.Format.MESSAGE_FORMAT) + @Message(id = 153004, value = "Invalid number of session (negative) {0}, defaulting to {1}.", format = Message.Format.MESSAGE_FORMAT) void invalidNumberOfMaxSession(int value, int defaultValue); @LogMessage(level = Logger.Level.WARN) - @Message(id = 153005, value = "Unable to retrieve '${0}' from JNDI. Creating a new '${1}' named '${2}' to be used by the MDB.", format = Message.Format.MESSAGE_FORMAT) + @Message(id = 153005, value = "Unable to retrieve \"{0}\" from JNDI. Creating a new \"{1}\" named \"{2}\" to be used by the MDB.", format = Message.Format.MESSAGE_FORMAT) void unableToRetrieveDestinationName(String destinationName, String name, String calculatedDestinationName); }