LOG4J2-589 improved comments

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/b534ca2f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/b534ca2f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/b534ca2f

Branch: refs/heads/master
Commit: b534ca2ffef68dfb241602079b2d851a87eb6691
Parents: 9f76d5e
Author: rpopma <[email protected]>
Authored: Fri Sep 26 02:18:33 2014 +0900
Committer: rpopma <[email protected]>
Committed: Fri Sep 26 02:18:33 2014 +0900

----------------------------------------------------------------------
 .../apache/logging/log4j/core/config/AbstractConfiguration.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/b534ca2f/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
index 28a22cb..325545b 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/AbstractConfiguration.java
@@ -372,7 +372,8 @@ public abstract class AbstractConfiguration extends 
AbstractFilterable implement
                     setRoot = true;
                 }
             } else if (child.getObject() instanceof Level) {
-                // nothing to do: plugin already created custom level
+                // This else clause prevents the warning message below from 
being logged.
+                // Nothing to do: plugin already created the custom Level 
instance.
             } else {
                 LOGGER.error("Unknown object \"{}\" of type {} is ignored.", 
child.getName(),
                         child.getObject().getClass().getName());

Reply via email to