Commit ec9cfc46 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Improve logging

parent 116b4634
Pipeline #32988 passed with stages
in 2 minutes and 17 seconds
......@@ -94,6 +94,7 @@ class WriteTypeReportToDrupal(Resource):
raise ImportApiError(f"Data field does not contain a list (url={url}): "
f"{response.text}.")
else:
current_app.logger.error("Could not find element: " + url)
raise ImportApiError(f"Could not find element for report: {response.text}.")
def write_results(self, node_type, identifier, status, report):
......
Markdown is supported
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