Skip to content

Commit

Permalink
turn errors into info messages for database related errors (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke authored Oct 30, 2024
1 parent a96050e commit ef50ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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}"
)
Expand Down

0 comments on commit ef50ecf

Please sign in to comment.