You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/06/16 17:42:25 UTC
logging-log4j2 git commit: Use "name" instead of "l" as an lvar name.
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 <ga...@gmail.com>
Authored: Tue Jun 16 08:42:17 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
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);
}
}