geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kh...@apache.org
Subject [geode] branch feature/GEODE-3277 updated: GEODE-3277: Change debug messages on failure to start launchers
Date Thu, 07 Sep 2017 22:48:21 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/feature/GEODE-3277 by this push:
     new ad635cf  GEODE-3277: Change debug messages on failure to start launchers
ad635cf is described below

commit ad635cf7f6780e120d2f77e96ce03a6664a3559b
Author: Ken Howe <khowe@pivotal.io>
AuthorDate: Thu Sep 7 15:19:45 2017 -0700

    GEODE-3277: Change debug messages on failure to start launchers
---
 .../src/main/java/org/apache/geode/distributed/LocatorLauncher.java    | 3 ++-
 .../src/main/java/org/apache/geode/distributed/ServerLauncher.java     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java b/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
index 7146694..caca1d6 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
@@ -50,6 +50,7 @@ import javax.management.ObjectName;
 import joptsimple.OptionException;
 import joptsimple.OptionParser;
 import joptsimple.OptionSet;
+import org.apache.commons.lang.exception.ExceptionUtils;
 
 import org.apache.geode.cache.client.internal.locator.LocatorStatusRequest;
 import org.apache.geode.cache.client.internal.locator.LocatorStatusResponse;
@@ -1089,7 +1090,7 @@ public class LocatorLauncher extends AbstractLauncher<String>
{
   }
 
   private LocatorState createNoResponseState(final Exception cause, final String errorMessage)
{
-    debug(cause + ": " + errorMessage);
+    debug(ExceptionUtils.getFullStackTrace(cause) + errorMessage);
     return new LocatorState(this, Status.NOT_RESPONDING, errorMessage);
   }
 
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java b/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
index 9aea81e..ad32150 100755
--- a/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
@@ -51,6 +51,7 @@ import javax.management.ObjectName;
 import joptsimple.OptionException;
 import joptsimple.OptionParser;
 import joptsimple.OptionSet;
+import org.apache.commons.lang.exception.ExceptionUtils;
 
 import org.apache.geode.SystemFailure;
 import org.apache.geode.cache.Cache;
@@ -1247,7 +1248,7 @@ public class ServerLauncher extends AbstractLauncher<String> {
   }
 
   private ServerState createNoResponseState(final Exception cause, final String errorMessage)
{
-    debug(cause);
+    debug(ExceptionUtils.getFullStackTrace(cause) + errorMessage);
     return new ServerState(this, Status.NOT_RESPONDING, errorMessage);
   }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <commits@geode.apache.org>'].

Mime
View raw message