Merge "Renamed PublishErrorsHandler"
This commit is contained in:
commit
b631f46c7f
@ -216,7 +216,7 @@ contributions to this release.
|
|||||||
|
|
||||||
Changes since 1.3.0a9:
|
Changes since 1.3.0a9:
|
||||||
|
|
||||||
* Expose PublishErrorsHandler in the public API
|
* Expose LoggingErrorNotificationHandler in the public API
|
||||||
* 1288425_: Add kombu driver library to requirements.txt
|
* 1288425_: Add kombu driver library to requirements.txt
|
||||||
* 1255239_: Add unit tests for the qpid driver
|
* 1255239_: Add unit tests for the qpid driver
|
||||||
* 1261631_: Add unit test for Qpid reconnect order
|
* 1261631_: Add unit test for Qpid reconnect order
|
||||||
|
@ -10,5 +10,5 @@ Notifier
|
|||||||
.. autoclass:: LoggingNotificationHandler
|
.. autoclass:: LoggingNotificationHandler
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. autoclass:: PublishErrorsHandler
|
.. autoclass:: LoggingErrorNotificationHandler
|
||||||
:members:
|
:members:
|
||||||
|
@ -17,7 +17,8 @@ __all__ = ['Notifier',
|
|||||||
'LoggingNotificationHandler',
|
'LoggingNotificationHandler',
|
||||||
'get_notification_listener',
|
'get_notification_listener',
|
||||||
'NotificationResult',
|
'NotificationResult',
|
||||||
'PublishErrorsHandler']
|
'PublishErrorsHandler',
|
||||||
|
'LoggingErrorNotificationHandler']
|
||||||
|
|
||||||
from .notifier import *
|
from .notifier import *
|
||||||
from .listener import *
|
from .listener import *
|
||||||
|
@ -15,7 +15,7 @@ import logging
|
|||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
||||||
|
|
||||||
class PublishErrorsHandler(logging.Handler):
|
class LoggingErrorNotificationHandler(logging.Handler):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
# NOTE(dhellmann): Avoid a cyclical import by doing this one
|
# NOTE(dhellmann): Avoid a cyclical import by doing this one
|
||||||
# at runtime.
|
# at runtime.
|
||||||
@ -36,3 +36,6 @@ class PublishErrorsHandler(logging.Handler):
|
|||||||
return
|
return
|
||||||
self._notifier.error(None, 'error_notification',
|
self._notifier.error(None, 'error_notification',
|
||||||
dict(error=record.msg))
|
dict(error=record.msg))
|
||||||
|
|
||||||
|
|
||||||
|
PublishErrorsHandler = LoggingErrorNotificationHandler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user