1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-16 08:06:05 +00:00

wip: disable more debugging on emulator

This commit is contained in:
M1nd3r 2024-10-23 20:34:35 +02:00
parent 1799386c78
commit 8fe0868d1b
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ def wrap_protobuf_load(
utils.get_bytes_as_str(buffer),
)
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(
__name__, "received message contents:\n%s", utils.dump_protobuf(msg)
)

View File

@ -308,7 +308,7 @@ class Channel:
session_id: int = 0,
force: bool = False,
) -> None:
if __debug__ and utils.EMULATOR:
if __debug__ and utils.EMULATOR and utils.ALLOW_DEBUG_MESSAGES:
log.debug(
__name__,
"(cid: %s) write message: %s\n%s",