Skip whitespace ping logging
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
854bb0cedb
commit
9da6f5328c
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue