From 6bcb48f95d537eb3cd1854fe19b1f38d22adcd6d Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 7 Jul 2014 17:34:08 +0200 Subject: [PATCH] Polish SPR-11963 --- .../handler/AbstractHttpReceivingTransportHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java index c20614e424..7b12d8407c 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/AbstractHttpReceivingTransportHandler.java @@ -55,12 +55,11 @@ public abstract class AbstractHttpReceivingTransportHandler extends AbstractTran messages = readMessages(request); } catch (IOException ex) { + logger.error("Failed to read message", ex); if(ex.getClass().getName().contains("Mapping")) { - logger.error("Failed to read message", ex); handleReadError(response, "Payload expected.", sockJsSession.getId()); } else { - logger.error("Failed to read message", ex); handleReadError(response, "Broken JSON encoding.", sockJsSession.getId()); } return;