Bug fixed in conf files templates. Update plugin APIs.
Change-Id: Ibb981c4ae8e6f41f9f095af386c0f29b30f68dd0
This commit is contained in:
parent
f19d7bb1c9
commit
b91933e79f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue