Commit 3c6a74b7 authored by Maxime Buquet's avatar Maxime Buquet

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

Skip whitespace ping logging

See merge request poezio/poezio!75
parents 3f297195 9da6f532
...@@ -1510,6 +1510,10 @@ class HandlerCore: ...@@ -1510,6 +1510,10 @@ class HandlerCore:
poezio_colored, poezio_colored,
nickname=char) nickname=char)
except: 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) log.debug('', exc_info=True)
if isinstance(self.core.tabs.current_tab, tabs.XMLTab): if isinstance(self.core.tabs.current_tab, tabs.XMLTab):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment