Use lowercase priority in log notifier
This commit is contained in:
parent
54d875bcac
commit
75c376aab0
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user