Skip to content

Commit

Permalink
Log track back in on_packet
Browse files Browse the repository at this point in the history
Many errors are raised in on_packet() callbacks, but currently it only
provides a very brief error message.
  • Loading branch information
zxzxwu committed Nov 29, 2023
1 parent a13e193 commit 0149c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bumble/transport/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0149c4c

Please sign in to comment.