From 6e15b3720537ebba18015e5f38e6a197133d3f6a Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Mon, 12 Jun 2017 18:05:06 +0200 Subject: [PATCH] trezor.wire: less logs --- src/trezor/wire/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/trezor/wire/__init__.py b/src/trezor/wire/__init__.py index 699785fae2..22728bbd46 100644 --- a/src/trezor/wire/__init__.py +++ b/src/trezor/wire/__init__.py @@ -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)