Skip to content

Commit 56302d5

Browse files
Update logging in scan_accounts to report TRC20 queue length and disable trx balance logging
1 parent 1eba399 commit 56302d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def scan_accounts(self, *args, **kwargs):
660660

661661
# Sort trc20 balances by balance in descending order
662662
balances_to_collect["trc20"].sort(key=lambda x: x[2], reverse=True)
663-
logger.info(balances_to_collect["trc20"])
663+
logger.info("TRC20 queue length: %d" % len(balances_to_collect["trc20"]))
664664
for account, symbol, trc20_balance in balances_to_collect["trc20"]:
665665
if not is_task_running(
666666
self,
@@ -671,7 +671,7 @@ def scan_accounts(self, *args, **kwargs):
671671

672672
# Sort trx balances by balance in descending order
673673
balances_to_collect["trx"].sort(key=lambda x: x[1], reverse=True)
674-
logger.info(balances_to_collect["trx"])
674+
# logger.info(balances_to_collect["trx"])
675675
for account, trx_balance in balances_to_collect["trx"]:
676676
if not is_task_running(
677677
self, "app.tasks.transfer_trc20_from", args=[account]

0 commit comments

Comments
 (0)