This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch feature/GEODE-5699
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 88332116385f94ad2dc1ee17a8fc714d5df1684a
Author: zhouxh <[email protected]>
AuthorDate: Wed Sep 5 23:18:15 2018 -0700

    GEODE-5699: re-enable command line paramter to turn on log-level or log4j2
                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 c4479ac..3c5561f 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -269,9 +269,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) {

Reply via email to