logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1478367 - /logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java
Date Thu, 02 May 2013 13:29:53 GMT
Author: rpopma
Date: Thu May  2 13:29:53 2013
New Revision: 1478367

URL: http://svn.apache.org/r1478367
Log:
LOG4J2-230 solution improvement: catch only ClassNotFoundEx, allow other errors to propagate

Modified:
    logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java

Modified: logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java?rev=1478367&r1=1478366&r2=1478367&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-to-slf4j/src/main/java/org/apache/logging/slf4j/SLF4JLoggerContextFactory.java
Thu May  2 13:29:53 2013
@@ -33,7 +33,7 @@ public class SLF4JLoggerContextFactory i
         try {
             Class.forName("org.slf4j.helpers.Log4JLoggerFactory");
             misconfigured = true;
-        } catch (Throwable classNotFoundIsGood) {
+        } catch (ClassNotFoundException classNotFoundIsGood) {
             // org.slf4j.helpers.Log4JLoggerFactory is not on classpath. Good!
         }
         if (misconfigured) {



Mime
View raw message