mirror of https://github.com/apache/activemq.git
AMQ-5312: Reduce logging noise for activemq-pool if its stopped.
This commit is contained in:
parent
ab1e9c78ef
commit
960186af89
|
@ -53,8 +53,12 @@ public class JcaPooledConnectionFactory extends XaPooledConnectionFactory {
|
||||||
public void onException(IOException error) {
|
public void onException(IOException error) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
setHasExpired(true);
|
setHasExpired(true);
|
||||||
LOG.info("Expiring connection " + connection + " on IOException: " + error);
|
// only log if not stopped
|
||||||
LOG.debug("Expiring connection on IOException", error);
|
if (!stopped.get()) {
|
||||||
|
LOG.info("Expiring connection " + connection + " on IOException: " + error.getMessage());
|
||||||
|
// log stacktrace at debug level
|
||||||
|
LOG.debug("Expiring connection " + connection + " on IOException: ", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,8 +110,12 @@ public class PooledConnectionFactory extends org.apache.activemq.jms.pool.Pooled
|
||||||
public void onException(IOException error) {
|
public void onException(IOException error) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
setHasExpired(true);
|
setHasExpired(true);
|
||||||
LOG.info("Expiring connection {} on IOException: {}" , connection, error);
|
// only log if not stopped
|
||||||
LOG.debug("Expiring connection on IOException", error);
|
if (!stopped.get()) {
|
||||||
|
LOG.info("Expiring connection " + connection + " on IOException: " + error.getMessage());
|
||||||
|
// log stacktrace at debug level
|
||||||
|
LOG.debug("Expiring connection " + connection + " on IOException: ", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,12 @@ public class XaPooledConnectionFactory extends org.apache.activemq.jms.pool.XaPo
|
||||||
public void onException(IOException error) {
|
public void onException(IOException error) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
setHasExpired(true);
|
setHasExpired(true);
|
||||||
LOG.info("Expiring connection " + connection + " on IOException: " + error);
|
// only log if not stopped
|
||||||
LOG.debug("Expiring connection on IOException", error);
|
if (!stopped.get()) {
|
||||||
|
LOG.info("Expiring connection " + connection + " on IOException: " + error.getMessage());
|
||||||
|
// log stacktrace at debug level
|
||||||
|
LOG.debug("Expiring connection " + connection + " on IOException: ", error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue