activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [activemq-artemis] branch master updated: NO-JIRA fix log message format in ActiveMQRALogger
Date Thu, 22 Aug 2019 02:05:15 GMT
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 <patrick.zeller@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);
 }


Mime
View raw message