logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1606957 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java
Date Tue, 01 Jul 2014 00:43:08 GMT
Author: mattsicker
Date: Tue Jul  1 00:43:07 2014
New Revision: 1606957

URL: http://svn.apache.org/r1606957
Log:
Use parameterized logging methods.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java?rev=1606957&r1=1606956&r2=1606957&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/net/jms/AbstractJmsManager.java
Tue Jul  1 00:43:07 2014
@@ -77,7 +77,7 @@ public abstract class AbstractJmsManager
         try {
             return ctx.lookup(name);
         } catch (final NameNotFoundException e) {
-            LOGGER.warn("Could not find name [" + name + "].");
+            LOGGER.warn("Could not find name [{}].", name);
             throw e;
         }
     }
@@ -148,7 +148,7 @@ public abstract class AbstractJmsManager
             }
             producer.send(msg);
         } catch (final JMSException ex) {
-            LOGGER.error("Could not publish message via JMS " + getName());
+            LOGGER.error("Could not publish message via JMS {}", getName());
             throw ex;
         }
     }



Mime
View raw message