logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1417828 - in /logging/log4j/log4j2/trunk: api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java src/changes/changes.xml
Date Thu, 06 Dec 2012 13:15:44 GMT
Author: ggregory
Date: Thu Dec  6 13:15:43 2012
New Revision: 1417828

URL: http://svn.apache.org/viewvc?rev=1417828&view=rev
Log:
<action issue="LOG4J2-132" dev="ggregory" type="fix">AbstractLogger.catching(Throwable)
checks for DEBUG level but logs at ERROR level.</action>

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

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=1417828&r1=1417827&r2=1417828&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
Thu Dec  6 13:15:43 2012
@@ -159,7 +159,7 @@ public abstract class AbstractLogger imp
      * @param t The Throwable.
      */
     public void catching(Throwable t) {
-        if (isEnabled(Level.DEBUG, CATCHING_MARKER, (Object) null, null)) {
+        if (isEnabled(Level.ERROR, CATCHING_MARKER, (Object) null, null)) {
             log(CATCHING_MARKER, FQCN, Level.ERROR, new SimpleMessage(CATCHING), t);
         }
     }

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1417828&r1=1417827&r2=1417828&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Thu Dec  6 13:15:43 2012
@@ -23,6 +23,9 @@
 
   <body>
     <release version="2.0-beta4" date="TBD" description="Bug fixes and enhancements">
+      <action issue="LOG4J2-132" dev="ggregory" type="fix">
+        AbstractLogger.catching(Throwable) checks for DEBUG level but logs at ERROR level.
+      </action>
       <action issue="LOG4J2-129" dev="rgoers" type="fix">
         RoutingAppender was only creating a single appender for the default Route.
       </action>



Mime
View raw message