Show neutron API request body with debug enabled
Shows the contents of update and create requests to the neutron API when debugging is enabled. Closes-Bug: #982504 Change-Id: I90680721aee9efbcb01779cdfacc86b90b37bf8f
This commit is contained in:
parent
d263b44cd7
commit
588bec2a10
@ -551,6 +551,7 @@ class Controller(object):
|
|||||||
if not body:
|
if not body:
|
||||||
raise webob.exc.HTTPBadRequest(_("Resource body required"))
|
raise webob.exc.HTTPBadRequest(_("Resource body required"))
|
||||||
|
|
||||||
|
LOG.debug(_("Request body: %(body)s"), {'body': body})
|
||||||
prep_req_body = lambda x: Controller.prepare_request_body(
|
prep_req_body = lambda x: Controller.prepare_request_body(
|
||||||
context,
|
context,
|
||||||
x if resource in x else {resource: x},
|
x if resource in x else {resource: x},
|
||||||
|
Loading…
Reference in New Issue
Block a user