logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501979 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
Date Wed, 10 Jul 2013 20:44:38 GMT
Author: ggregory
Date: Wed Jul 10 20:44:37 2013
New Revision: 1501979

URL: http://svn.apache.org/r1501979
Log:
Fix printf with markers.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java?rev=1501979&r1=1501978&r2=1501979&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
Wed Jul 10 20:44:37 2013
@@ -1470,7 +1470,7 @@ public abstract class AbstractLogger imp
      * @param params Arguments specified by the format.
      */
     public void printf(Level level, Marker marker, String format, Object... params) {
-        if (isEnabled(level, null, format, params)) {
+        if (isEnabled(level, marker, format, params)) {
             Message msg = new StringFormattedMessage(format, params);
             log(marker, FQCN, level, msg, msg.getThrowable());
         }



Mime
View raw message