Log track back in on_packet

Many errors are raised in on_packet() callbacks, but currently it only
provides a very brief error message.
This commit is contained in:
Josh Wu
2023-11-28 20:11:09 +08:00
parent a13e193d3b
commit 0149c4c212

View File

@@ -150,7 +150,7 @@ class PacketParser:
try:
self.sink.on_packet(bytes(self.packet))
except Exception as error:
logger.warning(
logger.exception(
color(f'!!! Exception in on_packet: {error}', 'red')
)
self.reset()