Commit 30c45b85 authored by Matthias's avatar Matthias
Browse files

add log message

parent efd35f22
Pipeline #24455 passed with stages
in 2 minutes and 15 seconds
......@@ -85,6 +85,7 @@ class WriteJobResultToDrupal(Resource):
description: There was a problem
"""
try:
current_app.logger.debug("report-json: " + request.json[0])
fatal = request.json[0]['fatal']
status = 'FAILED'
if fatal == 0:
......@@ -92,7 +93,6 @@ class WriteJobResultToDrupal(Resource):
report = json.dumps(request.json[0], indent=2)
return write_results(job_drupal_uuid, job_log_drupal_uuid, status, report)
except ImportApiError as e:
current_app.logger.debug("report-json: " + request.json[0])
return {'error': e.message}, 500
......
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