From 77cee5d8803f18cddff80157ac902010d4e77d6a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 5 Mar 2019 22:34:11 -0700 Subject: Add some debugging to narrow down what is going on --- synapse/handlers/room_member.py | 3 +++ synapse/handlers/sync.py | 1 + 2 files changed, 4 insertions(+) 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 = [] -- cgit 1.4.1