Use lowercase priority in log notifier

This commit is contained in:
Mark McLoughlin 2013-06-24 12:39:25 +01:00
parent 54d875bcac
commit 75c376aab0

View File

@ -30,4 +30,4 @@ class LogDriver(notifier._Driver):
def notify(self, ctxt, message, priority): def notify(self, ctxt, message, priority):
logger = logging.getLogger('%s.%s' % (self.LOGGER_BASE, logger = logging.getLogger('%s.%s' % (self.LOGGER_BASE,
message['event_type'])) message['event_type']))
getattr(logger, priority)(jsonutils.dumps(message)) getattr(logger, priority.lower())(jsonutils.dumps(message))