From 7ec57e4daba98c19655fea73fab81354bb514091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 22 Nov 2017 14:53:06 +0100 Subject: [PATCH] Lower debug level for malformed avatar stanzas --- gajim/common/connection_handlers_events.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gajim/common/connection_handlers_events.py b/gajim/common/connection_handlers_events.py index 7bf371815..88c78ffc5 100644 --- a/gajim/common/connection_handlers_events.py +++ b/gajim/common/connection_handlers_events.py @@ -625,23 +625,23 @@ class PubsubAvatarReceivedEvent(nec.NetworkIncomingEvent): item = self.items_node.getTag('item') if not item: log.warning('Received malformed avatar data via pubsub') - log.warning(self.stanza) + log.debug(self.stanza) return self.sha = item.getAttr('id') data_tag = item.getTag('data', namespace='urn:xmpp:avatar:data') if self.sha is None or data_tag is None: log.warning('Received malformed avatar data via pubsub') - log.warning(self.stanza) + log.debug(self.stanza) return self.data = data_tag.getData() if self.data is None: log.warning('Received malformed avatar data via pubsub') - log.warning(self.stanza) + log.debug(self.stanza) return try: self.data = base64.b64decode(self.data.encode('utf-8')) except binascii.Error as err: - log.warning('Received malformed avatar data via pubsub: %s' % err) + log.debug('Received malformed avatar data via pubsub: %s' % err) return return True