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:00:01 UTC

activemq git commit: AMQ-6765 Add trace logging of start failure exception

Repository: activemq
Updated Branches:
  refs/heads/master d7f70837b -> 56bed30c6


AMQ-6765 Add trace logging of start failure exception

Log the exception at trace level when start fails.


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

Branch: refs/heads/master
Commit: 56bed30c6427a1cc6b41e0d289a97c3e5b4582c4
Parents: d7f7083
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 15:46:15 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/56bed30c/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 100644
--- 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());
         }