]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Log the body of an /action
authorDerrick J. Wippler <thrawn01@gmail.com>
Fri, 19 Oct 2012 14:53:18 +0000 (14:53 +0000)
committerDerrick J. Wippler <thrawn01@gmail.com>
Tue, 30 Oct 2012 14:50:39 +0000 (14:50 +0000)
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

cinder/api/openstack/wsgi.py

index fa0baead62891423fa394a867d4622342a088817..9bfc8b061f6ac56c8c531df137613465bd319ab4 100644 (file)
@@ -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