@ -272,8 +271,10 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -272,8 +271,10 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
}
}
catch(Throwableex){
logger.error("Failed to send client message to application via MessageChannel"+
" in session "+session.getId()+". Sending STOMP ERROR to client.",ex);
if(logger.isErrorEnabled()){
logger.error("Failed to send client message to application via MessageChannel"+
" in session "+session.getId()+". Sending STOMP ERROR to client.",ex);
}
handleError(session,ex,message);
}
}
@ -291,7 +292,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -291,7 +292,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@ -336,7 +337,9 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -336,7 +337,9 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
this.eventPublisher.publishEvent(event);
}
catch(Throwableex){
logger.error("Error publishing "+event,ex);
if(logger.isErrorEnabled()){
logger.error("Error publishing "+event,ex);
}
}
}
@ -347,27 +350,29 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -347,27 +350,29 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@ -382,25 +387,21 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -382,25 +387,21 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@ -414,7 +415,9 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -414,7 +415,9 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
}
catch(Throwableex){
// Could be part of normal workflow (e.g. browser tab closed)
logger.debug("Failed to send WebSocket message to client in session "+session.getId(),ex);
if(logger.isDebugEnabled()){
logger.debug("Failed to send WebSocket message to client in session "+session.getId(),ex);
}
command=StompCommand.ERROR;
}
finally{
@ -471,9 +474,13 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -471,9 +474,13 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@ -484,6 +491,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -484,6 +491,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
elseif(!acceptVersions.isEmpty()){
thrownewIllegalArgumentException("Unsupported STOMP version '"+acceptVersions+"'");
@ -491,6 +499,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE
@@ -491,6 +499,7 @@ public class StompSubProtocolHandler implements SubProtocolHandler, ApplicationE