Skip to content

Commit

Permalink
Add logs changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Oct 25, 2023
1 parent 0171542 commit c192f27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crawlers/mooncrawl/mooncrawl/state_crawler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def crawl_calls_level(
logger.error(f"Exception: {e}")
raise (e)
time.sleep(2)
logger.info(f"Retry: {retry}")
logger.debug(f"Retry: {retry}")
# results parsing and writing to database
add_to_session_count = 0
for result in make_multicall_result:
Expand Down Expand Up @@ -469,8 +469,7 @@ def recursive_unpack(method_abi: Any, level: int = 0) -> Any:
# run crawling of levels
try:
# initial call of level 0 all call without subcalls directly moved there
logger.info("Crawl level: 0")
logger.info(f"Jobs amount: {len(calls[0])}")
logger.info("Crawl level: 0. Jobs amount: {len(calls[0])}")
logger.info(f"call_tree_levels: {call_tree_levels}")

batch_size = crawl_calls_level(
Expand All @@ -488,8 +487,7 @@ def recursive_unpack(method_abi: Any, level: int = 0) -> Any:
)

for level in call_tree_levels:
logger.info(f"Crawl level: {level}")
logger.info(f"Jobs amount: {len(calls[level])}")
logger.info(f"Crawl level: {level}. Jobs amount: {len(calls[level])}")

batch_size = crawl_calls_level(
web3_client,
Expand Down

0 comments on commit c192f27

Please sign in to comment.