aboutsummaryrefslogtreecommitdiff
path: root/juick-ws
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-30 00:00:04 +0300
committerGravatar Vitaly Takmazov2016-11-30 00:00:04 +0300
commita0414bcd43b5b07018fcd3ba0013c0ea11e26552 (patch)
treeb482e2ec4bb5c5def07849edb412b25e1504d1de /juick-ws
parentbc387bb4b171f1037194db2bd60790416c04d930 (diff)
juick-ws: more logging
Diffstat (limited to 'juick-ws')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java2
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;