summaryrefslogtreecommitdiffstats
path: root/nova/wsgi.py
diff options
context:
space:
mode:
authorIlya Alekseyev <ialekseev@griddynamics.com>2011-04-20 18:20:27 +0400
committerIlya Alekseyev <ialekseev@griddynamics.com>2011-04-20 18:20:27 +0400
commitf618d1675e49b4cc492a52812e8bb2811ef2fb56 (patch)
tree1c19833e59304f525427dae2929b2d9f3aa8a977 /nova/wsgi.py
parent90a1f58796822e7fa392634e2daf767975554d40 (diff)
parent1a814ba56a696ce796ab7707eacc2ee065c448e8 (diff)
trunk merged
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r--nova/wsgi.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index 72758e50e..de2e0749f 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -43,6 +43,7 @@ from nova import utils
FLAGS = flags.FLAGS
+LOG = logging.getLogger('nova.wsgi')
class WritableLogger(object):
@@ -346,6 +347,7 @@ class Controller(object):
arg_dict = req.environ['wsgiorg.routing_args'][1]
action = arg_dict['action']
method = getattr(self, action)
+ LOG.debug("%s %s" % (req.method, req.url))
del arg_dict['controller']
del arg_dict['action']
if 'format' in arg_dict:
@@ -361,6 +363,9 @@ class Controller(object):
response = webob.Response()
response.headers["Content-Type"] = content_type
response.body = body
+ msg_dict = dict(url=req.url, status=response.status_int)
+ msg = _("%(url)s returned with HTTP %(status)d") % msg_dict
+ LOG.debug(msg)
return response
else:
return result