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:
parent
1799386c78
commit
8fe0868d1b
@ -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)
|
||||
)
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user