Add 'warning' as an alias to 'warn'
The standard Python logging system uses 'warning' and not 'warn'. To ease compatibility with it, let's add 'warning' too. Change-Id: I7778d7960ca7a72be007cb083e5434ede6e3fe6e
This commit is contained in:
parent
f137822ab0
commit
5912b58233
@ -206,6 +206,8 @@ class Notifier(object):
|
||||
"""
|
||||
self._notify(ctxt, event_type, payload, 'WARN')
|
||||
|
||||
warning = warn
|
||||
|
||||
def error(self, ctxt, event_type, payload):
|
||||
"""Send a notification at error level.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user