squelch log spam

This commit is contained in:
tim
2024-07-27 01:18:31 -04:00
parent 11e77c8eac
commit ce73d11164
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ async def handle_order_cancel_all(event: EventData):
async def handle_transfer(transfer: EventData):
# todo handle native transfers incl gas for token transfers
log.debug(f'Transfer {transfer}')
# log.debug(f'Transfer {transfer}')
from_address = transfer['args']['from']
to_address = transfer['args']['to']
amount = int(transfer['args']['value'])

View File

@@ -57,6 +57,7 @@ class BlockProgressor(metaclass=ABCMeta):
pass
async def get_backfill_batches(self, from_height, to_height, w3=None):
log.debug(f'querying backfill {from_height} through {to_height}')
if w3 is None:
w3 = current_w3.get()
batches = []
@@ -67,7 +68,6 @@ class BlockProgressor(metaclass=ABCMeta):
lf = dict(log_filter)
lf['fromBlock'] = from_height
lf['toBlock'] = to_height
log.debug(f'querying backfill {from_height} through {to_height}')
get_logs = w3.eth.get_logs(lf)
if not config.parallel_logevent_queries:
get_logs = await get_logs