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

Commit dc46f12

Browse files
authored
Include room ID in ignored EDU log messages (#10507)
Signed-off-by: Dagfinn Ilmari Mannsåker <[email protected]>
1 parent 42225aa commit dc46f12

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

changelog.d/10507.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Include room ID in ignored EDU log messages. Contributed by @ilmari.

synapse/handlers/receipts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ async def _received_remote_receipt(self, origin: str, content: JsonDict) -> None
7070
)
7171
if not is_in_room:
7272
logger.info(
73-
"Ignoring receipt from %s as we're not in the room",
73+
"Ignoring receipt for room %r from server %s as we're not in the room",
74+
room_id,
7475
origin,
7576
)
7677
continue

synapse/handlers/typing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ async def _recv_edu(self, origin: str, content: JsonDict) -> None:
335335
)
336336
if not is_in_room:
337337
logger.info(
338-
"Ignoring typing update from %s as we're not in the room",
338+
"Ignoring typing update for room %r from server %s as we're not in the room",
339+
room_id,
339340
origin,
340341
)
341342
return

0 commit comments

Comments
 (0)