Skip to content

Commit

Permalink
fix: removing useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Mar 25, 2024
1 parent a23e8b9 commit daad609
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/api_app/monitoring/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def fetch_transaction_details(transaction_hash):
logger.info(f"[DEBUG] Received response: {response}")
response = response.get("params").get("result").get("transaction")

logger.info(f"[DEBUG] Received response while fetching txn details: {response}")
# logger.info(f"[DEBUG] Received response while fetching txn details: {response}")
response["transaction_hash"] = transaction_hash

transaction_data = response.get("params")
Expand All @@ -227,7 +227,7 @@ def fetch_transaction_details(transaction_hash):
transaction_data["chainId"] = int(transaction_data["chainId"], 16)
transaction_data["nonce"] = int(transaction_data["nonce"], 16)

logger.info(f"[DEBUG] Overwrote transaction data: {transaction_data}")
# logger.info(f"[DEBUG] Overwrote transaction data: {transaction_data}")

return transaction_data

Expand Down Expand Up @@ -329,7 +329,8 @@ def trace_transaction(transaction_hash):
transaction["slot"] = sol_block.get("slot")

if transaction is None and chain != "sol":
logger.info(f"[DEBUG] Transaction is none. Response is {response}")
# logger.info(f"[DEBUG] Transaction is none. Response is {response}")
pass

# fetch alerts from the database
# run the alerts
Expand All @@ -356,7 +357,7 @@ def trace_transaction(transaction_hash):
break

if len(alerts) == 0:
logger.log(f"[DEBUG] No alerts found for contract {contract_address}")
# logger.log(f"[DEBUG] No alerts found for contract {contract_address}")
time.sleep(2)
continue

Expand Down

0 comments on commit daad609

Please sign in to comment.