mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-27 13:35:44 +00:00
wip: disable more debugging on emulator
This commit is contained in:
parent
1799386c78
commit
8fe0868d1b
@ -37,7 +37,7 @@ def wrap_protobuf_load(
|
|||||||
utils.get_bytes_as_str(buffer),
|
utils.get_bytes_as_str(buffer),
|
||||||
)
|
)
|
||||||
msg = protobuf.decode(buffer, expected_type, EXPERIMENTAL_ENABLED)
|
msg = protobuf.decode(buffer, expected_type, EXPERIMENTAL_ENABLED)
|
||||||
if __debug__ and utils.EMULATOR:
|
if __debug__ and utils.EMULATOR and utils.ALLOW_DEBUG_MESSAGES:
|
||||||
log.debug(
|
log.debug(
|
||||||
__name__, "received message contents:\n%s", utils.dump_protobuf(msg)
|
__name__, "received message contents:\n%s", utils.dump_protobuf(msg)
|
||||||
)
|
)
|
||||||
|
@ -308,7 +308,7 @@ class Channel:
|
|||||||
session_id: int = 0,
|
session_id: int = 0,
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
) -> None:
|
) -> None:
|
||||||
if __debug__ and utils.EMULATOR:
|
if __debug__ and utils.EMULATOR and utils.ALLOW_DEBUG_MESSAGES:
|
||||||
log.debug(
|
log.debug(
|
||||||
__name__,
|
__name__,
|
||||||
"(cid: %s) write message: %s\n%s",
|
"(cid: %s) write message: %s\n%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user