Skip to content

Commit 230b5fd

Browse files
committed
chore: log
1 parent 7bf9c08 commit 230b5fd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,12 @@ def events_to_process(cur, index_table_name):
140140
KEY ASC;
141141
"""
142142
)
143-
cur.execute(sql)
144-
143+
logger.info(f"SQL: {sql}")
144+
try:
145+
cur.execute(sql)
146+
except Exception as e:
147+
logger.error(f"SQL failed: {e}")
148+
145149
# group together results from the query above
146150
# the group by done based on the block_height, tx_idx, and msg_idx
147151
# this is how key and value are put into their own column

0 commit comments

Comments
 (0)