summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-28 14:54:39 +0000
committerGerrit Code Review <review@openstack.org>2012-02-28 14:54:39 +0000
commitd2bb5db9fa308cd98a26a4a9629410ad43d1a109 (patch)
tree052a13b1a6436c67d733fd184ccc2f63162cfc85 /nova/api
parent54956b21387327f2731bf935db76678b298fa77a (diff)
parentfab893f333fa80567ef12f6817d52459b28c84a4 (diff)
Merge "TypeError API exceptions get logged incorrectly"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/wsgi.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py
index ad45284c7..8f0259024 100644
--- a/nova/api/openstack/wsgi.py
+++ b/nova/api/openstack/wsgi.py
@@ -21,7 +21,6 @@ from xml.parsers import expat
from lxml import etree
import webob
-from webob import exc
from nova import exception
from nova import log as logging
@@ -574,7 +573,9 @@ class ResourceExceptionHandler(object):
msg = unicode(ex_value)
raise Fault(webob.exc.HTTPForbidden(explanation=msg))
elif isinstance(ex_value, TypeError):
- LOG.exception(ex_value)
+ exc_info = (ex_type, ex_value, ex_traceback)
+ LOG.error(_('Exception handling resource: %s') % ex_value,
+ exc_info=exc_info)
raise Fault(webob.exc.HTTPBadRequest())
elif isinstance(ex_value, Fault):
LOG.info(_("Fault thrown: %s"), unicode(ex_value))