Skip whitespace ping logging

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-31 01:03:57 +02:00
parent 854bb0cedb
commit 9da6f5328c
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -1510,6 +1510,10 @@ class HandlerCore:
poezio_colored,
nickname=char)
except:
# Most of the time what gets logged is whitespace pings. Skip.
# And also skip tab updates.
if stanza.strip() != '':
return None
log.debug('', exc_info=True)
if isinstance(self.core.tabs.current_tab, tabs.XMLTab):