NO-JIRA fix log message format in ActiveMQRALogger

MessageFormat uses single quotes to escape so string ${0} was logged.
This commit is contained in:
Patrick Zeller 2019-08-21 16:45:46 +02:00 committed by Clebert Suconic
parent b828de502c
commit 1b5ed3d1a4
1 changed files with 2 additions and 2 deletions

View File

@ -155,10 +155,10 @@ public interface ActiveMQRALogger extends BasicLogger {
void invalidAcknowledgementMode(String mode); void invalidAcknowledgementMode(String mode);
@LogMessage(level = Logger.Level.WARN) @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); void invalidNumberOfMaxSession(int value, int defaultValue);
@LogMessage(level = Logger.Level.WARN) @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); void unableToRetrieveDestinationName(String destinationName, String name, String calculatedDestinationName);
} }