summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-03-31 01:08:01 +0200
committerMaxime Buquet <pep@bouah.net>2020-03-31 01:08:01 +0200
commit3c6a74b72656026735745e6c51fd1289dd2f5810 (patch)
tree50f56634b335f566f985ded7f3478cdf33f10679
parent3f297195b0f7339aeb0df7d60b1eafb5933acc3a (diff)
parent9da6f5328c714f6bdcbc89cb038e10116ab0bed6 (diff)
downloadpoezio-3c6a74b72656026735745e6c51fd1289dd2f5810.tar.gz
poezio-3c6a74b72656026735745e6c51fd1289dd2f5810.tar.bz2
poezio-3c6a74b72656026735745e6c51fd1289dd2f5810.tar.xz
poezio-3c6a74b72656026735745e6c51fd1289dd2f5810.zip
Merge branch 'skip-whitespace-ping-log' into 'master'
Skip whitespace ping logging See merge request poezio/poezio!75
-rw-r--r--poezio/core/handlers.py4
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):