Commit 898a5a0b authored by Matthias's avatar Matthias

prettify return value

parent da799fe6
Pipeline #16820 passed with stages
in 4 minutes and 31 seconds
......@@ -75,10 +75,11 @@ class AutoDeploy(Resource):
except Exception as ex:
status = 'an exception occured: ' + str(ex)
returnVal = {
'status': status,
'body': flaskRequest.data.decode('utf-8'),
'log': output
"status": status,
"body": "",
"log": output
}
returnVal['body'] = body
log = '\n\n[' + str(datetime.datetime.now()) + '] ' + json.dumps(returnVal)
f = open('requests.log', 'a')
f.write(log)
......
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