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:
Gary Tully 2011-03-04 11:46:39 +00:00
parent 1b45e3be04
commit 78f85ed277
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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"));