diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2012-02-14 01:45:19 +0000 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2012-02-14 01:46:53 +0000 |
| commit | d02ac90c6871186a560e9faabdd9a8d2b041d5b3 (patch) | |
| tree | e9494250164d5fb89aa084a62ae86c1624340825 | |
| parent | 14b79e78176b84f25ae666e9352041905fe8289e (diff) | |
| download | nova-d02ac90c6871186a560e9faabdd9a8d2b041d5b3.tar.gz nova-d02ac90c6871186a560e9faabdd9a8d2b041d5b3.tar.xz nova-d02ac90c6871186a560e9faabdd9a8d2b041d5b3.zip | |
Adding logging for 500 errors.
Change-Id: Ic1f38cf9a3fc48e39af094c90af09dc659e1eb68
| -rw-r--r-- | nova/api/openstack/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py index 135a8c75b..6938ec58e 100644 --- a/nova/api/openstack/__init__.py +++ b/nova/api/openstack/__init__.py @@ -41,6 +41,8 @@ class FaultWrapper(base_wsgi.Middleware): return req.get_response(self.application) except Exception as ex: LOG.exception(_("Caught error: %s"), unicode(ex)) + msg_dict = dict(url=req.url, status=500) + LOG.info(_("%(url)s returned with HTTP %(status)d") % msg_dict) exc = webob.exc.HTTPInternalServerError() # NOTE(johannes): We leave the explanation empty here on # purpose. It could possibly have sensitive information |
