Skip to content

Commit

Permalink
Add last_block value to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yukonet committed Mar 18, 2024
1 parent ae807d9 commit 86769b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def events_listener():
sleep_sec = 60
logger.exception(f"Exception in main block scanner loop: {e}")
logger.warning(f"Waiting {sleep_sec} seconds before retry.")
logger.warning(f'Last block in blockchain is {w3.eth.block_number}.
If this is the current block in the blockchain -
add the environment variable LAST_BLOCK_LOCKED = "False" to the deployment')
time.sleep(sleep_sec)


0 comments on commit 86769b5

Please sign in to comment.