Remove debug logs

This commit is contained in:
Eric Eastwood 2024-09-17 23:59:31 -05:00
parent a894e3b7ef
commit b5a96b7a42
2 changed files with 0 additions and 26 deletions

View File

@ -261,13 +261,6 @@ class SlidingSyncHandler:
is_dm=room_id in interested_rooms.dm_room_ids,
)
logger.info(
"asdf handle_room room_sync_result %s %s %s",
room_id,
bool(room_sync_result),
room_sync_result,
)
# Filter out empty room results during incremental sync
if room_sync_result or not from_token:
rooms[room_id] = room_sync_result

View File

@ -271,16 +271,11 @@ class SlidingSyncRoomLists:
missing_newly_left_rooms = (
newly_left_room_map.keys() - room_membership_for_user_map.keys()
)
logger.info("asdf newly_left_room_map: %s", newly_left_room_map.keys())
logger.info("asdf missing_newly_left_rooms: %s", missing_newly_left_rooms)
if missing_newly_left_rooms:
# TODO: It would be nice to avoid these copies
room_membership_for_user_map = dict(room_membership_for_user_map)
for room_id in missing_newly_left_rooms:
newly_left_room_for_user = newly_left_room_map[room_id]
logger.info(
"asdf newly_left_room_for_user: %s", newly_left_room_for_user
)
# This should be a given
assert newly_left_room_for_user.membership == Membership.LEAVE
@ -357,7 +352,6 @@ class SlidingSyncRoomLists:
newly_left=room_id in newly_left_room_map,
)
}
logger.info("asdf sync_room_map: %s", sync_room_map)
with start_active_span("assemble_sliding_window_lists"):
for list_key, list_config in sync_config.lists.items():
# Apply filters
@ -371,9 +365,6 @@ class SlidingSyncRoomLists:
to_token,
dm_room_ids,
)
logger.info(
"asdf filtered_sync_room_map: %s", filtered_sync_room_map
)
# Find which rooms are partially stated and may need to be filtered out
# depending on the `required_state` requested (see below).
@ -515,11 +506,6 @@ class SlidingSyncRoomLists:
previous_connection_state, from_token, relevant_room_map
)
logger.info(
"asdf room_membership_for_user_map: %s", room_membership_for_user_map
)
logger.info("asdf relevant_rooms_to_send_map: %s", relevant_rooms_to_send_map)
return SlidingSyncInterestedRooms(
lists=lists,
relevant_room_map=relevant_room_map,
@ -547,10 +533,6 @@ class SlidingSyncRoomLists:
) = await self.get_room_membership_for_user_at_to_token(
sync_config.user, to_token, from_token
)
logger.info(
"asdf _compute_interested_rooms_fallback room_membership_for_user_map: %s",
room_membership_for_user_map,
)
dm_room_ids = await self._get_dm_rooms_for_user(sync_config.user.to_string())
@ -993,7 +975,6 @@ class SlidingSyncRoomLists:
) = await self._get_newly_joined_and_left_rooms(
user_id, to_token=to_token, from_token=from_token
)
logger.info("asdf newly_left_room_map: %s", newly_left_room_map.keys())
# If the user has never joined any rooms before, we can just return an empty
# list. We also have to check the `newly_left_room_map` in case someone was