Skip to content

Commit

Permalink
Merge pull request #142 from Aiven-Open/dmitry-potepalov-cassandra-co…
Browse files Browse the repository at this point in the history
…ncise-connect-error-logging

Log only the error when connecting to Cassandra
  • Loading branch information
fingon authored Sep 14, 2023
2 parents 1b932e7 + 45e6726 commit 431da5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astacus/common/cassandra/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def connect(self) -> Generator[CassandraSession, None, None]:

error = error_values[0]

logger.exception("Unexpected exception while connecting to local cassandra: %r", error)
logger.error("Unexpected exception while connecting to local cassandra: %r", error)
raise NoHostAvailableException from ex

async def run_sync(self, fun: Callable, *args: Any, **kwargs: Any) -> Any:
Expand Down

0 comments on commit 431da5a

Please sign in to comment.