diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-09-20 01:59:20 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-09-20 01:59:20 +0000 |
| commit | 70ed4ff2cba921262250065257a5002db1a7c19f (patch) | |
| tree | 75b8ac8657e6928f039c31caadac035bd6632125 /nova/api | |
| parent | 20a91c4cdf8f0ce874690d88225ee93e8511f051 (diff) | |
| parent | 4de976ccf8f27c152f89aecc7ded2c2cd9d0a710 (diff) | |
| download | nova-70ed4ff2cba921262250065257a5002db1a7c19f.tar.gz nova-70ed4ff2cba921262250065257a5002db1a7c19f.tar.xz nova-70ed4ff2cba921262250065257a5002db1a7c19f.zip | |
Merge "Send api.fault notification on API service faults."
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py index 12dd8ae83..ada6024cf 100644 --- a/nova/api/openstack/__init__.py +++ b/nova/api/openstack/__init__.py @@ -25,6 +25,7 @@ import webob.dec import webob.exc from nova.api.openstack import wsgi +from nova import notifications from nova.openstack.common import log as logging from nova import utils from nova import wsgi as base_wsgi @@ -70,6 +71,8 @@ class FaultWrapper(base_wsgi.Middleware): if safe: outer.explanation = '%s: %s' % (inner.__class__.__name__, unicode(inner)) + + notifications.send_api_fault(req.url, status, inner) return wsgi.Fault(outer) @webob.dec.wsgify(RequestClass=wsgi.Request) |
