From d02ac90c6871186a560e9faabdd9a8d2b041d5b3 Mon Sep 17 00:00:00 2001 From: Naveed Massjouni Date: Tue, 14 Feb 2012 01:45:19 +0000 Subject: Adding logging for 500 errors. Change-Id: Ic1f38cf9a3fc48e39af094c90af09dc659e1eb68 --- nova/api/openstack/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit