You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cs...@apache.org on 2018/07/30 11:57:07 UTC

activemq git commit: AMQ-7004 - Improved logging in Failover Transport

Repository: activemq
Updated Branches:
  refs/heads/master b67c141e6 -> 7974e8c09


AMQ-7004 - Improved logging in Failover Transport


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

Branch: refs/heads/master
Commit: 7974e8c0991dd0bcf2e226ea9b54ff8d740acfc8
Parents: b67c141
Author: Christopher L. Shannon (cshannon) <ch...@gmail.com>
Authored: Mon Jul 30 07:56:33 2018 -0400
Committer: Christopher L. Shannon (cshannon) <ch...@gmail.com>
Committed: Mon Jul 30 07:56:33 2018 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/transport/failover/FailoverTransport.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/7974e8c0/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
----------------------------------------------------------------------
diff --git a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java b/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
index 9c24828..caf14f4 100644
--- a/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
+++ b/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
@@ -1057,6 +1057,7 @@ public class FailoverTransport implements CompositeTransport {
                             return false;
                         } catch (Exception e) {
                             failure = e;
+                            LOG.error("Connect fail to: {}, error message: {}", uri, e.getMessage());
                             LOG.debug("Connect fail to: {}, reason: {}", uri, e);
                             if (transport != null) {
                                 try {
@@ -1286,6 +1287,7 @@ public class FailoverTransport implements CompositeTransport {
                     for (URI uri : updatedURIs) {
                         if (uri != null && !updated.contains(uri)) {
                             updated.add(uri);
+                            LOG.info("Adding new URI to transport: {}", uri);
                         }
                     }
                 }