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 06:19:33 UTC

[geode] branch feature/GEODE-5699 created (now 8833211)

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

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


      at 8833211  GEODE-5699: re-enable command line paramter to turn on log-level or log4j2             in running dunit/junit tests

This branch includes the following new commits:

     new 8833211  GEODE-5699: re-enable command line paramter to turn on log-level or log4j2             in running dunit/junit tests

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[geode] 01/01: GEODE-5699: re-enable command line paramter to turn on log-level or log4j2 in running dunit/junit tests

Posted by zh...@apache.org.
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 <gz...@pivotal.io>
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) {