From 46d46b1845cd223f2c9d21017d4c6c8dc84d2b59 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 17 Apr 2024 17:28:35 +0200 Subject: [PATCH] Add logging to sync_set_send_bit --- core/src/trezor/wire/thp/thp_session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/trezor/wire/thp/thp_session.py b/core/src/trezor/wire/thp/thp_session.py index 12778f91f..831c5d57c 100644 --- a/core/src/trezor/wire/thp/thp_session.py +++ b/core/src/trezor/wire/thp/thp_session.py @@ -132,7 +132,8 @@ def _get_unauthenticated_session_or_none(session_id) -> SessionThpCache | None: def _sync_set_send_bit(cache: SessionThpCache | ChannelCache, bit: int) -> None: if bit not in (0, 1): raise ThpError("Unexpected send sync bit") - + if __debug__: + log.debug(__name__, "setting sync send bit to %d", bit) # set third bit to "bit" value cache.sync &= 0xDF if bit: