Skip to content

Commit 9923675

Browse files
committed
ExceptoinWebSocketHandlerDecorator uses ERROR level
Issue: SPR-15537
1 parent e2aa117 commit 9923675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/handler/ExceptionWebSocketHandlerDecorator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -86,8 +86,8 @@ public void afterConnectionClosed(WebSocketSession session, CloseStatus closeSta
8686

8787

8888
public static void tryCloseWithError(WebSocketSession session, Throwable exception, Log logger) {
89-
if (logger.isDebugEnabled()) {
90-
logger.debug("Closing due to exception for " + session, exception);
89+
if (logger.isErrorEnabled()) {
90+
logger.error("Closing session due to exception for " + session, exception);
9191
}
9292
if (session.isOpen()) {
9393
try {

0 commit comments

Comments
 (0)