client: Log the decrypted sender, room id and event id at the info level.

This commit is contained in:
Damir Jelić 2020-03-02 16:20:33 +01:00
parent 0a5e8a7865
commit 0be0b5301b

View File

@ -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