Tweak the logging a bit. Didn't like the idea of different log messages depending on log level.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@631866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2008-02-28 06:24:17 +00:00
parent da6c2d61f1
commit a6e227dcdc
1 changed files with 2 additions and 5 deletions

View File

@ -199,11 +199,8 @@ public class FailoverTransport implements CompositeTransport {
synchronized (reconnectMutex) {
boolean reconnectOk = false;
if(started) {
if (LOG.isDebugEnabled()) {
LOG.debug("Transport failed, attempting to automatically reconnect due to: " + e, e);
} else {
LOG.warn("Transport failed, attempting to automatically reconnect due to: " + e);
}
LOG.warn("Transport failed, attempting to automatically reconnect due to: " + e);
LOG.debug("Transport failed with the following exception:", e);
reconnectOk = true;
}