From 10a721bb5044fdc36aba4e6a6af753a1233655a1 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Mon, 17 Mar 2014 15:21:08 -0700 Subject: [PATCH] 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 --- neutron/api/v2/base.py | 1 + 1 file changed, 1 insertion(+) 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}, -- 2.45.2