From c767e9beffe4b826eac869ce7e2eef2cc1499bbe Mon Sep 17 00:00:00 2001 From: Andrew Bogott Date: Thu, 19 Jul 2012 03:34:31 -0500 Subject: Add multiple-driver support to the notifier api. Move all of the functionality previously provided by the list_notifier into the basic notifier api. Move and restructure tests accordingly. Remove the list_notifier file and test file. For bug 1025820 Change-Id: Idf7cb975dd78e9951188781622a4d10ca466b154 --- openstack/common/log.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'openstack/common/log.py') diff --git a/openstack/common/log.py b/openstack/common/log.py index 76962c2..49e6107 100644 --- a/openstack/common/log.py +++ b/openstack/common/log.py @@ -247,10 +247,9 @@ class JSONFormatter(logging.Formatter): class PublishErrorsHandler(logging.Handler): def emit(self, record): - if 'list_notifier_drivers' in CONF: - if ('openstack.common.notifier.log_notifier' in - CONF.list_notifier_drivers): - return + if ('openstack.common.notifier.log_notifier' in + CONF.notification_driver): + return notifier.api.notify(None, 'error.publisher', 'error_notification', notifier.api.ERROR, -- cgit