ExceptoinWebSocketHandlerDecorator uses ERROR level
Issue: SPR-15537
This commit is contained in:
parent
204a9cf056
commit
df8412bded
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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) {
|
public static void tryCloseWithError(WebSocketSession session, Throwable exception, Log logger) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isErrorEnabled()) {
|
||||||
logger.debug("Closing due to exception for " + session, exception);
|
logger.error("Closing session due to exception for " + session, exception);
|
||||||
}
|
}
|
||||||
if (session.isOpen()) {
|
if (session.isOpen()) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue