Commit 28925572 authored by Łukasz Nowak's avatar Łukasz Nowak

Be more precise while logging error.

parent bbf165b9
......@@ -131,8 +131,8 @@ class InstancePublisher(GenericPublisher):
person.requestSoftwareInstance(**request_dict)
except Exception:
transaction.abort()
LOG('VifibRestApiV1Tool', ERROR, 'Problem with request.',
error=True)
LOG('VifibRestApiV1Tool', ERROR,
'Problem with person.requestSoftwareInstance:', error=True)
response.setStatus(500)
response.setBody(json.dumps({'error':
'There is system issue, please try again later.'}))
......
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