Include room ID in ignored EDU log messages (#10507)

Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
This commit is contained in:
Dagfinn Ilmari Mannsåker 2021-08-03 14:35:49 +01:00 committed by GitHub
parent 42225aa421
commit dc46f12725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

1
changelog.d/10507.misc Normal file
View file

@ -0,0 +1 @@
Include room ID in ignored EDU log messages. Contributed by @ilmari.

View file

@ -70,7 +70,8 @@ class ReceiptsHandler(BaseHandler):
) )
if not is_in_room: if not is_in_room:
logger.info( 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, origin,
) )
continue continue

View file

@ -335,7 +335,8 @@ class TypingWriterHandler(FollowerTypingHandler):
) )
if not is_in_room: if not is_in_room:
logger.info( 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, origin,
) )
return return