diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-03-31 01:03:57 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-03-31 01:03:57 +0200 |
commit | 9da6f5328c714f6bdcbc89cb038e10116ab0bed6 (patch) | |
tree | 33231c88e21c8eea744ac231888f7e65cb8e5725 | |
parent | 854bb0cedb151e185b9710937cf04d8757b9f100 (diff) | |
download | poezio-9da6f5328c714f6bdcbc89cb038e10116ab0bed6.tar.gz poezio-9da6f5328c714f6bdcbc89cb038e10116ab0bed6.tar.bz2 poezio-9da6f5328c714f6bdcbc89cb038e10116ab0bed6.tar.xz poezio-9da6f5328c714f6bdcbc89cb038e10116ab0bed6.zip |
Skip whitespace ping logging
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/core/handlers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index c8d08441..620d854c 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -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): |