Allow to enable logging of ignored packets
This commit is contained in:
parent
aeea271547
commit
1307869d9c
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue