From dd6efb144467a6f8463f194394cb1e725e4535b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 1 Jul 2019 18:10:29 +0200 Subject: e2ee-api: change log line in _encrypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/plugin_e2ee.py') diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index c45c0c74..3f67d2f3 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -175,7 +175,7 @@ class E2EEPlugin(BasePlugin): if not self._encryption_enabled(jid): return message - log.debug('Sending %s message: %r', self.encryption_name, message['body']) + log.debug('Sending %s message: %r', self.encryption_name, message) has_body = message.xml.find('{%s}%s' % (JCLIENT_NS, 'body')) is not None @@ -213,7 +213,7 @@ class E2EEPlugin(BasePlugin): if elem.tag not in self.tag_whitelist: message.xml.remove(elem) - log.debug('Encrypted %s message: %r', self.encryption_name, message['body']) + log.debug('Encrypted %s message: %r', self.encryption_name, message) return message def decrypt(self, _message: Message, tab: ChatTabs): -- cgit v1.2.3