From 75c376aab034d2e21bc9eb5ab3cc6a9dee9d7ac3 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin <markmc@redhat.com> Date: Mon, 24 Jun 2013 12:39:25 +0100 Subject: [PATCH] Use lowercase priority in log notifier --- oslo/messaging/notify/_impl_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo/messaging/notify/_impl_log.py b/oslo/messaging/notify/_impl_log.py index b2ab7ff92..3a0971845 100644 --- a/oslo/messaging/notify/_impl_log.py +++ b/oslo/messaging/notify/_impl_log.py @@ -30,4 +30,4 @@ class LogDriver(notifier._Driver): def notify(self, ctxt, message, priority): logger = logging.getLogger('%s.%s' % (self.LOGGER_BASE, message['event_type'])) - getattr(logger, priority)(jsonutils.dumps(message)) + getattr(logger, priority.lower())(jsonutils.dumps(message))