mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-18 14:08:47 +00:00
chore: improve logging in received_message_handler
This commit is contained in:
parent
b76ea55d48
commit
f69ed3c5fc
@ -152,8 +152,8 @@ def _send_ack(ctx: Channel, ack_bit: int) -> Awaitable[None]:
|
|||||||
if __debug__ and utils.ALLOW_DEBUG_MESSAGES:
|
if __debug__ and utils.ALLOW_DEBUG_MESSAGES:
|
||||||
log.debug(
|
log.debug(
|
||||||
__name__,
|
__name__,
|
||||||
"Writing ACK message to a channel with id: %d, ack_bit: %d",
|
"Writing ACK message to a channel with cid: %s, ack_bit: %d",
|
||||||
ctx.get_channel_id_int(),
|
get_bytes_as_str(ctx.channel_id),
|
||||||
ack_bit,
|
ack_bit,
|
||||||
)
|
)
|
||||||
return write_payload_to_wire_and_add_checksum(ctx.iface, header, b"")
|
return write_payload_to_wire_and_add_checksum(ctx.iface, header, b"")
|
||||||
@ -404,6 +404,11 @@ async def _handle_state_ENCRYPTED_TRANSPORT(ctx: Channel, message_length: int) -
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
if __debug__ and utils.ALLOW_DEBUG_MESSAGES:
|
||||||
|
log.debug(
|
||||||
|
__name__,
|
||||||
|
f"Scheduled message to be handled by a session (session_id: {session_id}, msg_type (int): {message_type})",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def _handle_pairing(ctx: Channel, message_length: int) -> None:
|
async def _handle_pairing(ctx: Channel, message_length: int) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user