geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinmeil...@apache.org
Subject geode git commit: GEODE-2876: add logging to diagnose test failure
Date Wed, 10 May 2017 20:56:28 GMT
Repository: geode
Updated Branches:
  refs/heads/develop 49c0551b5 -> 820b87cb3


GEODE-2876: add logging to diagnose test failure


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/820b87cb
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/820b87cb
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/820b87cb

Branch: refs/heads/develop
Commit: 820b87cb36f2e9b7921bde20e664d276110b6424
Parents: 49c0551
Author: Jinmei Liao <jiliao@pivotal.io>
Authored: Tue May 9 08:28:28 2017 -0700
Committer: Jinmei Liao <jiliao@pivotal.io>
Committed: Wed May 10 13:55:02 2017 -0700

----------------------------------------------------------------------
 .../org/apache/geode/management/internal/cli/GfshParser.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/820b87cb/geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParser.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParser.java
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParser.java
index 20ae022..27ced23 100755
--- a/geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParser.java
+++ b/geode-core/src/main/java/org/apache/geode/management/internal/cli/GfshParser.java
@@ -15,6 +15,7 @@
 package org.apache.geode.management.internal.cli;
 
 import org.apache.commons.lang.StringUtils;
+import org.apache.geode.internal.logging.LogService;
 import org.springframework.shell.converters.ArrayConverter;
 import org.springframework.shell.core.CommandMarker;
 import org.springframework.shell.core.Completion;
@@ -48,6 +49,7 @@ public class GfshParser extends SimpleParser {
 
   // Make use of LogWrapper
   private static final LogWrapper logWrapper = LogWrapper.getInstance();
+  private static final org.apache.logging.log4j.Logger logger = LogService.getLogger();
 
   // pattern used to split the user input with whitespaces except those in quotes (single
or double)
   private static Pattern PATTERN =
@@ -178,8 +180,10 @@ public class GfshParser extends SimpleParser {
 
   @Override
   public GfshParseResult parse(String userInput) {
+    logger.info("parser user input: <" + userInput + ">");
     String rawInput = convertToSimpleParserInput(userInput);
 
+    logger.info("parser raw input: <" + rawInput + ">");
     // User SimpleParser to parse the input
     ParseResult result = super.parse(rawInput);
 


Mime
View raw message