From: Kevin Benton Date: Mon, 17 Mar 2014 22:21:08 +0000 (-0700) Subject: Show neutron API request body with debug enabled X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=10a721bb5044fdc36aba4e6a6af753a1233655a1;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/neutron/api/v2/base.py b/neutron/api/v2/base.py index 0e86e5cf4..bfd6dcf9d 100644 --- a/neutron/api/v2/base.py +++ b/neutron/api/v2/base.py @@ -551,6 +551,7 @@ class Controller(object): if not body: raise webob.exc.HTTPBadRequest(_("Resource body required")) + LOG.debug(_("Request body: %(body)s"), {'body': body}) prep_req_body = lambda x: Controller.prepare_request_body( context, x if resource in x else {resource: x},