Skip to content

Commit

Permalink
Fix check_database_connection
Browse files Browse the repository at this point in the history
  • Loading branch information
dougppaz committed Jul 10, 2018
1 parent a816dde commit a52d2be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bothub/health/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ def check_database_connection(**kwargs):
return False
logger.info('found {} database connection'.format(len(connections.all())))
for i, conn in enumerate(connections.all(), 1):
db_conn = connections['default']
try:
db_conn.cursor()
conn.cursor()
logger.info('#{} db connection OKAY'.format(i))
except OperationalError as e:
logger.warning('#{} db connection ERROR'.format(i))
Expand Down

0 comments on commit a52d2be

Please sign in to comment.