Bug fixed in conf files templates. Update plugin APIs.

Change-Id: Ibb981c4ae8e6f41f9f095af386c0f29b30f68dd0
This commit is contained in:
Nicola Peditto 2017-05-02 15:25:56 +02:00
parent f19d7bb1c9
commit b91933e79f
1 changed files with 8 additions and 4 deletions

View File

@ -53,11 +53,15 @@ def sendRequest(url, action, headers=None, body=None, verbose=False):
if verbose:
req = json.loads(send)
LOG.info("\nREST REQUEST: HTTP " + str(response['status'])
+ " - success = " + str(req['success'])
+ " - " + str(req['result']['records']))
LOG.info("Request:\n" + str(req) + "\n")
LOG.info("Request response:\n" + str(response) + "\n")
# LOG.info("\nREST REQUEST: HTTP " + str(response['status'])
# + " - success = " + str(req['success'])
# + " - " + str(req['result']['records']))
except Exception as err:
req = json.loads(send)
LOG.error("Request Error:\n" + str(req) + "\n")
LOG.error("sendRequest error: " + str(err))
return send
return response, send