Skip to content

Commit

Permalink
A couple more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Jan 10, 2025
1 parent d31ff53 commit 1d64beb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,8 @@ async def do_invite_join(
content: The event content to use for the join event.
"""
logger.info("🧲 do_invite_join for %s in %s", joinee, room_id)

# TODO: We should be able to call this on workers, but the upgrading of
# room stuff after join currently doesn't work on workers.
# TODO: Before we relax this condition, we need to allow re-syncing of
Expand Down
6 changes: 6 additions & 0 deletions synapse/storage/databases/main/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2836,6 +2836,8 @@ def _store_room_members_txn(
for backfilled events because backfilled events in the past do
not affect the current local state.
"""
for event in events:
logger.info("🔦 _store_room_members_txn update room_memberships: %s", event)

self.db_pool.simple_insert_many_txn(
txn,
Expand Down Expand Up @@ -2892,6 +2894,10 @@ def _store_room_members_txn(
Membership.LEAVE,
)

logger.info(
"🔦 _store_room_members_txn update local_current_membership: %s",
event,
)
self.db_pool.simple_upsert_txn(
txn,
table="local_current_membership",
Expand Down

0 comments on commit 1d64beb

Please sign in to comment.