From 09c2c970698ad67b89f44ed39f581062d01777cc Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 30 Dec 2019 16:22:41 -0500 Subject: [PATCH] only log account details on startup if there are not very many --- lbry/lbry/wallet/ledger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbry/lbry/wallet/ledger.py b/lbry/lbry/wallet/ledger.py index 15938cb52..85ee0ec0d 100644 --- a/lbry/lbry/wallet/ledger.py +++ b/lbry/lbry/wallet/ledger.py @@ -107,7 +107,10 @@ class MainNetLedger(BaseLedger): await super().start() await asyncio.gather(*(a.maybe_migrate_certificates() for a in self.accounts)) await asyncio.gather(*(a.save_max_gap() for a in self.accounts)) - await self._report_state() + if len(self.accounts) > 10: + log.info("Loaded %i accounts", len(self.accounts)) + else: + await self._report_state() self.on_transaction.listen(self._reset_balance_cache) async def _report_state(self):