Skip to content

Commit

Permalink
xmr: lite debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 13, 2018
1 parent b1f6ce0 commit b037339
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/apps/monero/lite_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ async def lite_protocol(ctx, msg, state, is_init=False):

from trezor.messages.MoneroLiteAck import MoneroLiteAck

log.debug(
__name__,
"### Lite. Free: {} Allocated: {}".format(gc.mem_free(), gc.mem_alloc()),
)
if __debug__:
log.debug(
__name__,
"### Lite. Free: {} Allocated: {}".format(gc.mem_free(), gc.mem_alloc()),
)

gc.collect()
try:
Expand All @@ -32,5 +33,6 @@ async def lite_protocol(ctx, msg, state, is_init=False):

except Exception as e:
state.ctx_ki = None
log.debug(__name__, "Lite error, %s: %s", type(e), e)
if __debug__:
log.debug(__name__, "Lite error, %s: %s", type(e), e)
raise

0 comments on commit b037339

Please sign in to comment.