Skip to content

Commit

Permalink
xmr: protocol.tsx_sign_builder - logger collects
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 18, 2018
1 parent a28eb55 commit d23d928
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/monero/protocol/tsx_sign_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def state_save(self):
setattr(t, attr, cval)
return t

def _log_trace(self, x=None):
def _log_trace(self, x=None, collect=False):
log.debug(
__name__,
"Log trace %s, ... F: %s A: %s, S: %s",
Expand All @@ -152,6 +152,8 @@ def _log_trace(self, x=None):
gc.mem_alloc(),
micropython.stack_use(),
)
if collect:
gc.collect()

def assrt(self, condition, msg=None):
"""
Expand Down

0 comments on commit d23d928

Please sign in to comment.