Changing logging to log stacktraces to debug only

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@631864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2008-02-28 06:20:12 +00:00
parent bf20d76622
commit da6c2d61f1
1 changed files with 6 additions and 3 deletions

View File

@ -127,8 +127,7 @@ public class FailoverTransport implements CompositeTransport {
try {
reconnectTask.wakeup();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
LOG.debug("Reconnect task has been interrupted.", e);
}
}
return result;
@ -200,7 +199,11 @@ public class FailoverTransport implements CompositeTransport {
synchronized (reconnectMutex) {
boolean reconnectOk = false;
if(started) {
LOG.warn("Transport failed, attempting to automatically reconnect due to: " + e, e);
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);
}
reconnectOk = true;
}