From: Derrick J. Wippler Date: Fri, 19 Oct 2012 14:53:18 +0000 (+0000) Subject: Log the body of an /action X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9ea375c5dce105c657694ce296fbb24b03a0c6ab;p=openstack-build%2Fcinder-build.git Log the body of an /action The inability to deduce an /action request from the logs makes diagnosing integration with nova difficult. This change logs the action method and arguments Change-Id: Iea4f46c7da9c61e07aa23e897b60992b8fdb6663 --- diff --git a/cinder/api/openstack/wsgi.py b/cinder/api/openstack/wsgi.py index fa0baead6..9bfc8b061 100644 --- a/cinder/api/openstack/wsgi.py +++ b/cinder/api/openstack/wsgi.py @@ -911,6 +911,7 @@ class Resource(wsgi.Application): # OK, it's an action; figure out which action... mtype = _MEDIA_TYPE_MAP.get(content_type) action_name = self.action_peek[mtype](body) + LOG.debug("Action body: %s" % body) else: action_name = action