You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2017/07/11 20:19:58 UTC

[2/2] activemq git commit: AMQ-6765 Add trace logging of start failure exception

AMQ-6765 Add trace logging of start failure exception

Log the exception at trace level when start fails.

(cherry picked from commit 56bed30c6427a1cc6b41e0d289a97c3e5b4582c4)


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/42e4a6cd
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/42e4a6cd
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/42e4a6cd

Branch: refs/heads/activemq-5.14.x
Commit: 42e4a6cd9902e63db26f4edc22dfca123df01fc8
Parents: 3b5a4d7
Author: Timothy Bish <ta...@gmail.com>
Authored: Tue Jul 11 15:43:32 2017 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Tue Jul 11 16:19:51 2017 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/transport/http/HttpClientTransport.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/42e4a6cd/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
----------------------------------------------------------------------
diff --git a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
index 153e5d6..2480daa 100755
--- a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
+++ b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java
@@ -281,6 +281,7 @@ public class HttpClientTransport extends HttpTransportSupport {
             httpClient.execute(httpMethod, new BasicResponseHandler());
             httpClient.execute(optionsMethod, handler);
         } catch(Exception e) {
+            LOG.trace("Error on start: ", e);
             throw new IOException("Failed to perform GET on: " + remoteUrl + " as response was: " + e.getMessage());
         }