mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
trezor.wire: less logs
This commit is contained in:
parent
e94d8cc277
commit
6e15b37205
@ -154,8 +154,8 @@ def _handle_unexpected(session_id, msg_type, data_len):
|
||||
|
||||
|
||||
def _write_report(report):
|
||||
if __debug__:
|
||||
log.info(__name__, 'write report %s', ubinascii.hexlify(report))
|
||||
# if __debug__:
|
||||
# log.debug(__name__, 'write report %s', ubinascii.hexlify(report))
|
||||
msg.send(_interface, report)
|
||||
|
||||
|
||||
@ -163,8 +163,8 @@ def _dispatch_reports():
|
||||
while True:
|
||||
report, = yield loop.Select(_interface)
|
||||
report = memoryview(report)
|
||||
if __debug__:
|
||||
log.debug(__name__, 'read report %s', ubinascii.hexlify(report))
|
||||
# if __debug__:
|
||||
# log.debug(__name__, 'read report %s', ubinascii.hexlify(report))
|
||||
sessions.dispatch(
|
||||
report, _session_open, _session_close, _session_unknown)
|
||||
|
||||
@ -183,4 +183,4 @@ def _session_close(session_id):
|
||||
|
||||
|
||||
def _session_unknown(session_id, report_data):
|
||||
pass
|
||||
log.warning(__name__, 'report on unknown session %x', session_id)
|
||||
|
Loading…
Reference in New Issue
Block a user