summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-12-02 20:51:28 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-12-02 20:51:28 +0000
commit274d137b00ceab22f01c07461bce18f8916b54bd (patch)
treef84ee90e0a90ddc0751390a6edc7925222f14590 /synapse
parentSquash room_ids list to a set() to remove duplicates - with TODO marker as I ... (diff)
downloadsynapse-274d137b00ceab22f01c07461bce18f8916b54bd.tar.xz
Extra verbosity on logging of received presence info
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index b55d589daf..815d40f166 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -651,11 +651,16 @@ class PresenceHandler(BaseHandler):
             logger.debug("Incoming presence update from %s", user)
 
             observers = set(self._remote_recvmap.get(user, set()))
+            if observers:
+                logger.debug(" | %d interested local observers %r", len(observers), observers)
 
             rm_handler = self.homeserver.get_handlers().room_member_handler
             room_ids = yield rm_handler.get_rooms_for_user(user)
+            if room_ids:
+                logger.debug(" | %d interested room IDs %r", len(room_ids), room_ids)
 
             if not observers and not room_ids:
+                logger.debug(" | no interested observers or room IDs")
                 continue
 
             state = dict(push)