summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-03-07 16:54:22 +0000
committerGerrit Code Review <review@openstack.org>2013-03-07 16:54:22 +0000
commit0cc1cd10c3df27c9765ce77a6c079ea63497147c (patch)
tree6ded378fdb300110bfcf29bb8df481843299aca9
parentca490d48a762a423449c654d5a7caeadecf2f6ca (diff)
parent08906450601b502aaf36d07d56ce03d4f2270c13 (diff)
downloadnova-0cc1cd10c3df27c9765ce77a6c079ea63497147c.tar.gz
nova-0cc1cd10c3df27c9765ce77a6c079ea63497147c.tar.xz
nova-0cc1cd10c3df27c9765ce77a6c079ea63497147c.zip
Merge "Remove duplicate API logging."
-rw-r--r--nova/api/openstack/wsgi.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index bdd38ebb5..5b9900f72 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -878,9 +878,6 @@ class Resource(wsgi.Application):
def __call__(self, request):
"""WSGI method that controls (de)serialization and method dispatch."""
- LOG.info("%(method)s %(url)s" % {"method": request.method,
- "url": request.url})
-
# Identify the action, its arguments, and the requested
# content type
action_args = self.get_action_args(request.environ)
@@ -923,7 +920,7 @@ class Resource(wsgi.Application):
return Fault(webob.exc.HTTPBadRequest(explanation=msg))
if body:
- LOG.info(_("Action: '%(action)s', body: %(body)s") % locals())
+ LOG.debug(_("Action: '%(action)s', body: %(body)s") % locals())
LOG.debug(_("Calling method %s") % meth)
# Now, deserialize the request body...
@@ -988,15 +985,6 @@ class Resource(wsgi.Application):
response = resp_obj.serialize(request, accept,
self.default_serializers)
- try:
- msg_dict = dict(url=request.url, status=response.status_int)
- msg = _("%(url)s returned with HTTP %(status)d") % msg_dict
- except AttributeError, e:
- msg_dict = dict(url=request.url, e=e)
- msg = _("%(url)s returned a fault: %(e)s") % msg_dict
-
- LOG.info(msg)
-
return response
def get_method(self, request, action, content_type, body):