Actually skip whitespace ping logging (thanks Ge0rG)

Fixes what 9da6f5328c intended to do.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-04-04 14:22:25 +02:00
parent 01a1d4441e
commit f72b6ed5c1
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -1512,7 +1512,7 @@ class HandlerCore:
except: except:
# Most of the time what gets logged is whitespace pings. Skip. # Most of the time what gets logged is whitespace pings. Skip.
# And also skip tab updates. # And also skip tab updates.
if stanza.strip() != '': if stanza.strip() == '':
return None return None
log.debug('', exc_info=True) log.debug('', exc_info=True)