diff options
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/Notifications.java | 1 | ||||
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ServerManager.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java index 4e6743d4..32ae1dc6 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -198,6 +198,7 @@ public class Notifications extends TextWebSocketHandler implements NotificationC }); } private void serviceMessageReceived(@Nonnull com.juick.Message jmsg) { + logger.info("Message read event from {} for {}", jmsg.getUser().getName(), jmsg.getMid()); // iOS List<User> users = rest.exchange(String.format("http://api.juick.com/notifications?uid=%d", jmsg.getUser().getUid()), 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 -> { |