Repository: logging-log4j2 Updated Branches: refs/heads/master 59538e3f2 -> a504413ae
Use "name" instead of "l" as an lvar name. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/a504413a Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a504413a Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a504413a Branch: refs/heads/master Commit: a504413ae2be1ee42382b04ea40c71abf488fe48 Parents: 59538e3 Author: Gary Gregory <[email protected]> Authored: Tue Jun 16 08:42:17 2015 -0700 Committer: Gary Gregory <[email protected]> Committed: Tue Jun 16 08:42:17 2015 -0700 ---------------------------------------------------------------------- .../org/apache/logging/log4j/core/BasicConfigurationFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a504413a/log4j-core/src/test/java/org/apache/logging/log4j/core/BasicConfigurationFactory.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/BasicConfigurationFactory.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/BasicConfigurationFactory.java index 5b5a873..ab0f25d 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/core/BasicConfigurationFactory.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/BasicConfigurationFactory.java @@ -54,8 +54,8 @@ public class BasicConfigurationFactory extends ConfigurationFactory { super(ConfigurationSource.NULL_SOURCE); final LoggerConfig root = getRootLogger(); - final String l = System.getProperty(DEFAULT_LEVEL); - final Level level = (l != null && Level.getLevel(l) != null) ? Level.getLevel(l) : Level.ERROR; + final String name = System.getProperty(DEFAULT_LEVEL); + final Level level = (name != null && Level.getLevel(name) != null) ? Level.getLevel(name) : Level.ERROR; root.setLevel(level); } }
