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