You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2019/08/22 02:05:15 UTC

[activemq-artemis] branch master updated: NO-JIRA fix log message format in ActiveMQRALogger

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b5ed3d  NO-JIRA fix log message format in ActiveMQRALogger
     new 82f27db  This closes #2808
1b5ed3d is described below

commit 1b5ed3d1a4d28d0291123cd5414bacdb1ca5d824
Author: Patrick Zeller <pa...@exxcellent.de>
AuthorDate: Wed Aug 21 16:45:46 2019 +0200

    NO-JIRA fix log message format in ActiveMQRALogger
    
    MessageFormat uses single quotes to escape so string ${0} was logged.
---
 .../main/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 720c1fd..455d8aa 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);
 }