mirror of https://github.com/apache/activemq.git
Merge pull request #497 from jbonofre/AMQ-7347
[AMQ-7347] Don't log error in case of topic subscription failure (use debug)
This commit is contained in:
commit
93f8ea1b8b
|
@ -369,7 +369,7 @@ public class TopicRegion extends AbstractRegion {
|
|||
answer.init();
|
||||
return answer;
|
||||
} 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");
|
||||
jmsEx.setLinkedException(e);
|
||||
throw jmsEx;
|
||||
|
|
|
@ -257,7 +257,11 @@ public class ProtocolConverter {
|
|||
if (command == null) {
|
||||
LOG.warn("Exception occurred while processing a command: {}", exception.toString());
|
||||
} 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()) {
|
||||
|
|
Loading…
Reference in New Issue