]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Show neutron API request body with debug enabled
authorKevin Benton <blak111@gmail.com>
Mon, 17 Mar 2014 22:21:08 +0000 (15:21 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 18 Mar 2014 01:47:11 +0000 (18:47 -0700)
Shows the contents of update and create requests
to the neutron API when debugging is enabled.

Closes-Bug: #982504
Change-Id: I90680721aee9efbcb01779cdfacc86b90b37bf8f

neutron/api/v2/base.py

index 0e86e5cf4644a4d008edcd0fe7319e149d348f29..bfd6dcf9db7473e58ce360c091875120e606b2bc 100644 (file)
@@ -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},