From daad6095e8ab940a3de29ae4ded4683f469e5099 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Tue, 26 Mar 2024 05:06:29 +0530 Subject: [PATCH] fix: removing useless logs --- backend/api_app/monitoring/tasks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/api_app/monitoring/tasks.py b/backend/api_app/monitoring/tasks.py index 2544683..d820bb0 100644 --- a/backend/api_app/monitoring/tasks.py +++ b/backend/api_app/monitoring/tasks.py @@ -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") @@ -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 @@ -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 @@ -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