Add debug message for REST call reply

This will help for debugging issues with NSX backend.

Change-Id: I65d3bd53200e92fbdd721bc471b17b2aeaac4377
This commit is contained in:
Shih-Hao Li 2016-03-17 23:03:59 -07:00 committed by garyk
parent fff24af849
commit 0cdf65a932
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ class RESTClient(object):
data=body,
headers=request_headers)
LOG.debug("REST call: %s %s\nResponse: %s",
method, request_url, result.json() if result.content else '')
self._validate_result(
result, RESTClient._VERB_RESP_CODES[method.lower()],
_("%(verb)s %(url)s") % {'verb': method, 'url': request_url})