You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2018/09/06 23:45:22 UTC
[geode] branch develop updated: GEODE-5699: re-enable command line
paramter to turn on log-level or log4j2 (#2428)
This is an automated email from the ASF dual-hosted git repository.
zhouxj pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 846fb02 GEODE-5699: re-enable command line paramter to turn on log-level or log4j2 (#2428)
846fb02 is described below
commit 846fb0229046e3e259c87044c8f8c8f0aaecf53c
Author: Xiaojian Zhou <ge...@users.noreply.github.com>
AuthorDate: Thu Sep 6 16:45:14 2018 -0700
GEODE-5699: re-enable command line paramter to turn on log-level or log4j2 (#2428)
in running dunit/junit tests
---
.../java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java | 2 +-
gradle/test.gradle | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/geode-dunit/src/main/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java b/geode-dunit/src/main/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
index a8fcf07..69e36c3 100644
--- a/geode-dunit/src/main/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
+++ b/geode-dunit/src/main/java/org/apache/geode/test/dunit/standalone/DUnitLauncher.java
@@ -83,7 +83,7 @@ public class DUnitLauncher {
/**
* change this to use a different log level in unit tests
*/
- public static final String logLevel = System.getProperty("logLevel", "info");
+ public static final String logLevel = System.getProperty(LOG_LEVEL, "info");
public static final String LOG4J = System.getProperty("log4j.configurationFile");
diff --git a/gradle/test.gradle b/gradle/test.gradle
index 40a9eb2..a146ba4 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -264,9 +264,9 @@ subprojects {
systemProperty 'gemfire.DEFAULT_MAX_OPLOG_SIZE', '10'
systemProperty 'gemfire.disallowMcastDefaults', 'true'
systemProperty 'jline.terminal', 'jline.UnsupportedTerminal'
- def logLevel = System.getProperty('logLevel')
+ def logLevel = System.getProperty('log-level')
if (logLevel != null) {
- systemProperty 'logLevel', logLevel
+ systemProperty 'log-level', logLevel
}
def log4jLocation = System.getProperty('log4j.configurationFile')
if (log4jLocation != null) {