From 0be0b5301bd4ce985a34cbf5bacf1c5e570953f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 2 Mar 2020 16:20:33 +0100 Subject: [PATCH] client: Log the decrypted sender, room id and event id at the info level. --- pantalaimon/client.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pantalaimon/client.py b/pantalaimon/client.py index 47ce515..78d00e5 100644 --- a/pantalaimon/client.py +++ b/pantalaimon/client.py @@ -819,6 +819,13 @@ class PanClient(AsyncClient): try: decrypted_event = self.decrypt_event(event) logger.debug("Decrypted event: {}".format(decrypted_event)) + logger.info( + "Decrypted event from {} in {}, event id: {}".format( + decrypted_event.sender, + decrypted_event.room_id, + decrypted_event.event_id, + ) + ) event_dict.update(decrypted_event.source) event_dict["decrypted"] = True