Commit 09a3cb21 authored by Maxime Buquet's avatar Maxime Buquet

plugin_e2ee: Remove debug logging of encrypted messages

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 7f73a664
......@@ -436,7 +436,7 @@ class E2EEPlugin(BasePlugin):
if not self._encryption_enabled(tab.jid):
raise NothingToEncrypt()
log.debug('Sending %s message: %r', self.encryption_name, message)
log.debug('Sending %s message', self.encryption_name)
has_body = message.xml.find('{%s}%s' % (JCLIENT_NS, 'body')) is not None
......@@ -444,10 +444,9 @@ class E2EEPlugin(BasePlugin):
# Stanza Encryption
if not self.stanza_encryption and not has_body:
'%s plugin: Dropping message as it contains no body, and is '
'not doesn\'t do stanza encryption: %r',
'%s plugin: Dropping message as it contains no body, and '
'not doesn\'t do stanza encryption',
return None
......@@ -486,7 +485,7 @@ class E2EEPlugin(BasePlugin):
if elem.tag not in tag_whitelist:
log.debug('Encrypted %s message: %r', self.encryption_name, message)
log.debug('Encrypted %s message', self.encryption_name)
return message
def store_trust(self, jid: JID, state: str, fingerprint: str) -> None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment