Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Include room ID in ignored EDU log messages
Browse files Browse the repository at this point in the history
Signed-off-by: Dagfinn Ilmari Mannsåker <[email protected]>
  • Loading branch information
ilmari committed Jul 31, 2021
1 parent c167e09 commit 2bc5208
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/10507.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include room ID in ignored EDU log messages.
3 changes: 2 additions & 1 deletion synapse/handlers/receipts.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ async def _received_remote_receipt(self, origin: str, content: JsonDict) -> None
)
if not is_in_room:
logger.info(
"Ignoring receipt from %s as we're not in the room",
"Ignoring receipt for room %r from server %s as we're not in the room",
room_id,
origin,
)
continue
Expand Down
3 changes: 2 additions & 1 deletion synapse/handlers/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ async def _recv_edu(self, origin: str, content: JsonDict) -> None:
)
if not is_in_room:
logger.info(
"Ignoring typing update from %s as we're not in the room",
"Ignoring typing update for room %r from server %s as we're not in the room",
room_id,
origin,
)
return
Expand Down

0 comments on commit 2bc5208

Please sign in to comment.