diff options
author | Vitaly Takmazov | 2016-11-30 00:00:04 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-30 00:00:04 +0300 |
commit | a0414bcd43b5b07018fcd3ba0013c0ea11e26552 (patch) | |
tree | b482e2ec4bb5c5def07849edb412b25e1504d1de | |
parent | bc387bb4b171f1037194db2bd60790416c04d930 (diff) |
juick-ws: more logging
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java index 0ef5374c..9704b463 100644 --- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java @@ -110,9 +110,9 @@ public class WebsocketComponent extends TextWebSocketHandler { @Override public void afterConnectionClosed(WebSocketSession session, CloseStatus status) throws Exception { synchronized (clients) { + logger.info(String.format("session closed with status %d: %s", status.getCode(), status.getReason())); clients.removeIf(c -> { if (c.session.getId().equals(session.getId())) { - logger.info(String.format("session from %s closed with status %d", c.clientName, status.getCode())); return true; } return false; |