mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 18:30:24 +00:00
Extra verbosity on logging of received presence info
This commit is contained in:
parent
307f94dcbe
commit
274d137b00
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue