Improve logging in spring-messaging

Before this change the amount of logging was too little or too much
with TRACE turned on. This change separates useful debugging
information and logs it under DEBUG and leaves more detailed
information to be logged under TRACE.
This commit is contained in:
Rossen Stoyanchev
2013-11-12 16:34:25 -05:00
parent 72dec7d0fe
commit df5d22e120
21 changed files with 187 additions and 117 deletions

View File

@@ -49,8 +49,8 @@ public class LoggingWebSocketHandlerDecorator extends WebSocketHandlerDecorator
@Override
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug(message + ", " + session);
if (logger.isTraceEnabled()) {
logger.trace(message + ", " + session);
}
super.handleMessage(session, message);
}