Commit 24cd4431 authored by Pablo Panero's avatar Pablo Panero
Browse files

Bug Fix: Change from logging to current_app.logger to use the appropriate context

parent 660083a7
......@@ -278,7 +278,7 @@ def build_health_blueprint():
if current_search_client.ping():
return 'OK'
else:
logging.error('Health Check: Elasticsearch connection is not available')
current_app.logger.error('Health Check: Elasticsearch connection is not available')
return make_response((
json.dumps({
'Elasticsearch is unavailable'
......@@ -292,7 +292,7 @@ def build_health_blueprint():
if db.engine.execute('SELECT 1;').scalar() == 1:
return 'OK'
else:
logging.error('Health Check: Database connection is not available')
current_app.logger.error('Health Check: Database connection is not available')
return make_response((
json.dumps({
'Database connection is unavailable'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment