mirror of https://github.com/apache/activemq.git
further reduction in stack traces at warn level in log for STOMP, suppress to stack trace to debug level, better for authorized broker
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1077889 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b45e3be04
commit
78f85ed277
|
@ -697,7 +697,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
brokerConnectionStates.remove(info);
|
||||
LOG.warn("Failed to add Connection, reason: " + e.toString());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Failure detail", e);
|
||||
LOG.debug("Exception detail:", e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
|
|
@ -206,7 +206,11 @@ public class ProtocolConverter {
|
|||
}
|
||||
|
||||
protected void handleException(Throwable exception, StompFrame command) throws IOException {
|
||||
LOG.warn("Exception occured processing: \n" + command, exception);
|
||||
LOG.warn("Exception occurred processing: \n" + command + ": " + exception.toString());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Exception detail", exception);
|
||||
}
|
||||
|
||||
// Let the stomp client know about any protocol errors.
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
PrintWriter stream = new PrintWriter(new OutputStreamWriter(baos, "UTF-8"));
|
||||
|
|
Loading…
Reference in New Issue