Add some debugging to narrow down what is going on

This commit is contained in:
Travis Ralston 2019-03-05 22:34:11 -07:00
parent 16c8b4ecbd
commit 77cee5d880
2 changed files with 4 additions and 0 deletions

View file

@ -452,6 +452,9 @@ class RoomMemberHandler(object):
) )
is_host_in_room = yield self._is_host_in_room(current_state_ids) 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 effective_membership_state == Membership.JOIN:
if requester.is_guest: if requester.is_guest:

View file

@ -1386,6 +1386,7 @@ class SyncHandler(object):
mem_change_events_by_room_id = {} mem_change_events_by_room_id = {}
for event in rooms_changed: for event in rooms_changed:
logger.warn("Membership %s" % event.room_id)
mem_change_events_by_room_id.setdefault(event.room_id, []).append(event) mem_change_events_by_room_id.setdefault(event.room_id, []).append(event)
newly_joined_rooms = [] newly_joined_rooms = []