Allow to enable logging of ignored packets

This commit is contained in:
əlemi 2022-04-27 13:30:19 +02:00
parent aeea271547
commit 1307869d9c
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -280,6 +280,7 @@ class Treepuncher(
self.logger.error("Connection error : %s", str(e)) self.logger.error("Connection error : %s", str(e))
self.dispatcher.whitelist(self.callback_keys(filter=Packet)) self.dispatcher.whitelist(self.callback_keys(filter=Packet))
self.dispatcher.log_ignored_packets(self.cfg.getboolean('log_ignored_packets', fallback=False))
while self._processing: while self._processing:
try: try: