summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-01-11 12:53:17 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2020-01-11 12:53:29 +0100
commit09a3cb2152244a40d68f21fde8a651922c4a9345 (patch)
tree5ae0fd3731c5cdbae1d6658162555091f243be89
parent7f73a664a3cbfd17d69f70609fe284d5bb9d44a2 (diff)
downloadpoezio-09a3cb2152244a40d68f21fde8a651922c4a9345.tar.gz
poezio-09a3cb2152244a40d68f21fde8a651922c4a9345.tar.bz2
poezio-09a3cb2152244a40d68f21fde8a651922c4a9345.tar.xz
poezio-09a3cb2152244a40d68f21fde8a651922c4a9345.zip
plugin_e2ee: Remove debug logging of encrypted messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--poezio/plugin_e2ee.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py
index 95b216b1..9d1d4903 100644
--- a/poezio/plugin_e2ee.py
+++ b/poezio/plugin_e2ee.py
@@ -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:
log.debug(
- '%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',
self.encryption_name,
- message,
)
return None
@@ -486,7 +485,7 @@ class E2EEPlugin(BasePlugin):
if elem.tag not in tag_whitelist:
message.xml.remove(elem)
- 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: