"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zaqar/transport/wsgi/v1_1/health.py" between
zaqar-9.0.0.tar.gz and zaqar-10.0.0.tar.gz

About: OpenStack Zaqar is a multi-tenant cloud messaging and notification service for web and mobile developers.
The "Ussuri" series (latest release).

health.py  (zaqar-9.0.0):health.py  (zaqar-10.0.0)
skipping to change at line 35 skipping to change at line 35
__slots__ = ('_driver',) __slots__ = ('_driver',)
def __init__(self, driver): def __init__(self, driver):
self._driver = driver self._driver = driver
def on_get(self, req, resp, **kwargs): def on_get(self, req, resp, **kwargs):
try: try:
resp_dict = self._driver.health() resp_dict = self._driver.health()
resp.body = utils.to_json(resp_dict) resp.body = utils.to_json(resp_dict)
except Exception as ex: except Exception:
LOG.exception(ex)
description = _(u'Health status could not be read.') description = _(u'Health status could not be read.')
LOG.exception(description)
raise wsgi_errors.HTTPServiceUnavailable(description) raise wsgi_errors.HTTPServiceUnavailable(description)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)