From 0149c4c2127a79336bcea60ff644959f40640d8e Mon Sep 17 00:00:00 2001 From: Josh Wu Date: Tue, 28 Nov 2023 20:11:09 +0800 Subject: [PATCH] Log track back in on_packet Many errors are raised in on_packet() callbacks, but currently it only provides a very brief error message. --- bumble/transport/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/transport/common.py b/bumble/transport/common.py index 2786a75e..53e52235 100644 --- a/bumble/transport/common.py +++ b/bumble/transport/common.py @@ -150,7 +150,7 @@ def feed_data(self, data: bytes) -> None: 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()