logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1585248 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
Date Sun, 06 Apr 2014 05:32:42 GMT
Author: mattsicker
Date: Sun Apr  6 05:32:41 2014
New Revision: 1585248

URL: http://svn.apache.org/r1585248
Log:
Make log less spammy.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java?rev=1585248&r1=1585247&r2=1585248&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
Sun Apr  6 05:32:41 2014
@@ -249,7 +249,8 @@ public class PluginManager {
                             final PluginType<?> pluginType = loadPluginType(className,
name, printable, defer);
                             types.put(key, pluginType);
                         } catch (final ClassNotFoundException e) {
-                            LOGGER.info("Plugin [{}] could not be loaded due to missing classes.",
className, e);
+                            LOGGER.catching(e);
+                            LOGGER.info("Plugin [{}] could not be loaded due to missing classes.",
className);
                         }
                     }
                     map.putIfAbsent(type, types);



Mime
View raw message