From ef50ecf059bb63824cd302920de50ba992da75f6 Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Wed, 30 Oct 2024 16:07:16 +0100 Subject: [PATCH] turn errors into info messages for database related errors (#83) --- src/helpers/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/database.py b/src/helpers/database.py index e465376..69ef02a 100644 --- a/src/helpers/database.py +++ b/src/helpers/database.py @@ -39,7 +39,7 @@ def execute_and_commit(self, query: str, params: dict): connection.execute(text(query), params) connection.commit() except Exception as e: - logger.error(f"Error executing and committing query: {e}") + logger.info(f"Error executing and committing query: {e}") connection.rollback() raise @@ -183,7 +183,7 @@ def write_prices_new(self, prices: list[tuple[str, int, float, str]]) -> None: }, ) except psycopg.errors.NumericValueOutOfRange: - logger.warning( + logger.info( f"Error while writing price data. token: {token_address}, " f"time: {time}, price: {price}, source: {source}" )