Skip to content

Commit

Permalink
adjusting log levels for DB connection issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Apr 6, 2023
1 parent ccf22f0 commit 9b6dd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/pg_utils_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ def check_db_connection(self, db_info: namedtuple) -> bool:
ret_val = bool(db_version)

except psycopg2.DatabaseError:
self.logger.error('Error database error checking DB connection')
self.logger.debug('Error database error checking DB connection.')

# connection failed
ret_val = False

except psycopg2.InterfaceError:
self.logger.error('Error database interface error checking DB connection')
self.logger.debug('Error database interface error checking DB connection.')

# connection failed
ret_val = False
Expand Down

0 comments on commit 9b6dd74

Please sign in to comment.