summary refs log tree commit diff
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2019-03-05 22:34:11 -0700
committerTravis Ralston <travpc@gmail.com>2019-03-05 23:40:36 -0700
commit77cee5d8803f18cddff80157ac902010d4e77d6a (patch)
tree98b3f6c1a80c4d5c44863ee63ce1939171e5182b
parentMerge pull request #4772 from jbweston/jbweston/server-version-api (diff)
downloadsynapse-77cee5d8803f18cddff80157ac902010d4e77d6a.tar.xz
Add some debugging to narrow down what is going on
-rw-r--r--synapse/handlers/room_member.py3
-rw-r--r--synapse/handlers/sync.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 190ea2c7b1..3b1b96fe4c 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -452,6 +452,9 @@ class RoomMemberHandler(object):
                     )
 
         is_host_in_room = yield self._is_host_in_room(current_state_ids)
+        logger.info("Is host in room? %s" % is_host_in_room)
+        logger.info("effective_membership_state %s" % effective_membership_state)
+        logger.info("remote_room_hosts %s" % remote_room_hosts)
 
         if effective_membership_state == Membership.JOIN:
             if requester.is_guest:
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index bd97241ab4..750c77d1ad 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1386,6 +1386,7 @@ class SyncHandler(object):
 
         mem_change_events_by_room_id = {}
         for event in rooms_changed:
+            logger.warn("Membership %s" % event.room_id)
             mem_change_events_by_room_id.setdefault(event.room_id, []).append(event)
 
         newly_joined_rooms = []