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/09/07 16:17:39 UTC

[03/14] 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/7a2c4eec
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/7a2c4eec
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/7a2c4eec

Branch: refs/heads/activemq-5.15.x
Commit: 7a2c4eecb2b5a1a2fc1f355173b888898a2f1f39
Parents: 7ab743a
Author: Timothy Bish <ta...@gmail.com>
Authored: Tue Jul 11 15:43:32 2017 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Thu Sep 7 12:10:08 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/7a2c4eec/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());
         }