From 92d6239a05f2eefa69505e4e6570045290b00b94 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 10 May 2018 14:03:46 +0300 Subject: message read event logging --- juick-server/src/main/java/com/juick/server/ServerManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-server/src/main/java/com/juick/server') diff --git a/juick-server/src/main/java/com/juick/server/ServerManager.java b/juick-server/src/main/java/com/juick/server/ServerManager.java index fa266c77..b6e3afcf 100644 --- a/juick-server/src/main/java/com/juick/server/ServerManager.java +++ b/juick-server/src/main/java/com/juick/server/ServerManager.java @@ -193,6 +193,7 @@ public class ServerManager implements NotificationListener { public void processMessageReadEvent(MessageReadEvent messageReadEvent) { User userTo = messageReadEvent.getUser(); Message source = messageReadEvent.getMessage(); + logger.info("Message read event from {} for {}", userTo.getName(), source.getMid()); wsHandler.getClients().stream().filter(c -> (!c.legacy && c.visitor.getUid() == userTo.getUid()) || c.visitor.getName().equals(serviceUser) ).forEach(u -> { -- cgit v1.2.3