AMQ-7004 - Improved logging in Failover Transport

This commit is contained in:
Christopher L. Shannon (cshannon) 2018-07-30 07:56:33 -04:00
parent b67c141e6a
commit 7974e8c099
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}
}