Merge branch 'skip-whitespace-ping-log' into 'master'
Skip whitespace ping logging See merge request poezio/poezio!75
This commit is contained in:
commit
3c6a74b726
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