mirror of https://github.com/apache/activemq.git
[AMQ-7347] Don't log error in case of topic subscription failure. It's useless as the JMX exception is thrown and pollute the log.
This commit is contained in:
parent
372a75fe82
commit
3c302dce33
|
@ -369,7 +369,7 @@ public class TopicRegion extends AbstractRegion {
|
||||||
answer.init();
|
answer.init();
|
||||||
return answer;
|
return answer;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Failed to create TopicSubscription ", e);
|
LOG.debug("Failed to create TopicSubscription ", e);
|
||||||
JMSException jmsEx = new JMSException("Couldn't create TopicSubscription");
|
JMSException jmsEx = new JMSException("Couldn't create TopicSubscription");
|
||||||
jmsEx.setLinkedException(e);
|
jmsEx.setLinkedException(e);
|
||||||
throw jmsEx;
|
throw jmsEx;
|
||||||
|
|
|
@ -257,7 +257,11 @@ public class ProtocolConverter {
|
||||||
if (command == null) {
|
if (command == null) {
|
||||||
LOG.warn("Exception occurred while processing a command: {}", exception.toString());
|
LOG.warn("Exception occurred while processing a command: {}", exception.toString());
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("Exception occurred processing: {} -> {}", safeGetAction(command), exception.toString());
|
if (exception instanceof JMSException) {
|
||||||
|
LOG.warn("Exception occurred for client {} ({}) processing: {} -> {} ({})", connectionInfo.getClientId(), connectionInfo.getClientIp(), safeGetAction(command), exception.toString(), ((JMSException) exception).getLinkedException().toString());
|
||||||
|
} else {
|
||||||
|
LOG.warn("Exception occurred for client {} ({}) processing: {} -> {}", connectionInfo.getClientId(), connectionInfo.getClientIp(), safeGetAction(command), exception.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue