Merge pull request #242 from jzelinskie/fixstatusendpoint
model: add missing params to validate_database_url
This commit is contained in:
commit
053ceb6220
1 changed files with 1 additions and 1 deletions
|
@ -2776,7 +2776,7 @@ def check_health(app_config):
|
||||||
# making a normal connect which will just hang (thus breaking the health
|
# making a normal connect which will just hang (thus breaking the health
|
||||||
# check).
|
# check).
|
||||||
try:
|
try:
|
||||||
validate_database_url(app_config['DB_URI'], connect_timeout=3)
|
validate_database_url(app_config['DB_URI'], {}, connect_timeout=3)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception('Could not connect to the database')
|
logger.exception('Could not connect to the database')
|
||||||
return False
|
return False
|
||||||
|
|
Reference in a new issue