Merge branch 'skip-whitespace-ping-log' into 'master'

Skip whitespace ping logging

See merge request poezio/poezio!75
This commit is contained in:
Maxime Buquet 2020-03-31 01:08:01 +02:00
commit 3c6a74b726

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):