From 7e369dabdc495c5f11ac325cbafcc4de2feab39e Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Wed, 17 Nov 2021 15:20:48 -0700 Subject: [PATCH] portal/matrix: improve logging Co-authored-by: Tulir Asokan --- mautrix_telegram/portal/matrix.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mautrix_telegram/portal/matrix.py b/mautrix_telegram/portal/matrix.py index 05c0df7b..6d201034 100644 --- a/mautrix_telegram/portal/matrix.py +++ b/mautrix_telegram/portal/matrix.py @@ -279,8 +279,8 @@ class PortalMatrix(BasePortal, ABC): else: if content.file: if not decrypt_attachment: - raise Exception(f"Can't bridge encrypted media event {event_id}: matrix-nio " - "is not installed") + raise Exception(f"Can't bridge encrypted media event {event_id}: " + "encryption dependencies not installed") file = await self.main_intent.download_media(content.file.url) file = decrypt_attachment(file, content.file.key.key, content.file.hashes.get("sha256"), content.file.iv) @@ -512,6 +512,7 @@ class PortalMatrix(BasePortal, ABC): try: await self._handle_matrix_deletion(deleter, event_id, redaction_event_id) except Exception as e: + self.log.debug(str(e)) await self._send_bridge_error(deleter, e, event_id, EventType.ROOM_REDACTION) else: deleter.send_remote_checkpoint(