From df8412bded77faadd60d62dc5c78ca8b2b44a481 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 24 May 2017 15:00:12 -0400 Subject: [PATCH] ExceptoinWebSocketHandlerDecorator uses ERROR level Issue: SPR-15537 --- .../socket/handler/ExceptionWebSocketHandlerDecorator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/handler/ExceptionWebSocketHandlerDecorator.java b/spring-websocket/src/main/java/org/springframework/web/socket/handler/ExceptionWebSocketHandlerDecorator.java index 728635620f..5e0ea0b863 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/handler/ExceptionWebSocketHandlerDecorator.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/handler/ExceptionWebSocketHandlerDecorator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,8 +86,8 @@ public class ExceptionWebSocketHandlerDecorator extends WebSocketHandlerDecorato public static void tryCloseWithError(WebSocketSession session, Throwable exception, Log logger) { - if (logger.isDebugEnabled()) { - logger.debug("Closing due to exception for " + session, exception); + if (logger.isErrorEnabled()) { + logger.error("Closing session due to exception for " + session, exception); } if (session.isOpen()) { try {