You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2014/06/21 17:10:00 UTC

svn commit: r1604418 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginBuilder.java

Author: rpopma
Date: Sat Jun 21 15:10:00 2014
New Revision: 1604418

URL: http://svn.apache.org/r1604418
Log:
show error details when configuration is invalid

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginBuilder.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginBuilder.java?rev=1604418&r1=1604417&r2=1604418&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginBuilder.java (original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginBuilder.java Sat Jun 21 15:10:00 2014
@@ -119,7 +119,7 @@ public class PluginBuilder<T> implements
                 return result;
             }
         } catch (final Exception e) {
-            LOGGER.catching(Level.DEBUG, e);
+            LOGGER.catching(Level.ERROR, e);
             LOGGER.error("Unable to inject fields into builder class for plugin type {}, element {}.", this.clazz,
                 node.getName());
         }
@@ -134,7 +134,7 @@ public class PluginBuilder<T> implements
             LOGGER.debug("Built Plugin[name={}] OK from factory method.", pluginType.getElementName());
             return plugin;
         } catch (final Exception e) {
-            LOGGER.catching(Level.DEBUG, e);
+            LOGGER.catching(Level.ERROR, e);
             LOGGER.error("Unable to invoke factory method in class {} for element {}.", this.clazz, this.node.getName());
             return null;
         }