consumes error notif. when event are disabled
When we fixes #1364708, this was worked only when store_event=True. This change fixes the issue when store_event=False. Change-Id: I6748397718be03e3f93ae2ccaa99642decdd9745 Related-bug: #1364708
This commit is contained in:
parent
a8ea36090a
commit
a3eb0fafad
|
@ -77,6 +77,19 @@ class NotificationBase(PluginBase):
|
|||
:param message: Message to process.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def _consume_and_drop(notifications):
|
||||
"""RPC endpoint for useless notification level"""
|
||||
# NOTE(sileht): nothing special todo here, but because we listen
|
||||
# for the generic notification exchange we have to consume all its
|
||||
# queues
|
||||
|
||||
audit = _consume_and_drop
|
||||
debug = _consume_and_drop
|
||||
warn = _consume_and_drop
|
||||
error = _consume_and_drop
|
||||
critical = _consume_and_drop
|
||||
|
||||
def info(self, notifications):
|
||||
"""RPC endpoint for notification messages at info level
|
||||
|
||||
|
|
Loading…
Reference in New Issue