Make LOG private in notifier
This commit is contained in:
parent
351eb2d9e4
commit
ec9b36dec2
@ -36,7 +36,7 @@ _notifier_opts = [
|
|||||||
help='AMQP topic used for openstack notifications'),
|
help='AMQP topic used for openstack notifications'),
|
||||||
]
|
]
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
_LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class _Driver(object):
|
class _Driver(object):
|
||||||
@ -141,9 +141,9 @@ class Notifier(object):
|
|||||||
try:
|
try:
|
||||||
ext.obj.notify(ctxt, msg, priority)
|
ext.obj.notify(ctxt, msg, priority)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.exception("Problem '%(e)s' attempting to send to "
|
_LOG.exception("Problem '%(e)s' attempting to send to "
|
||||||
"notification system. Payload=%(payload)s",
|
"notification system. Payload=%(payload)s",
|
||||||
dict(e=e, payload=payload))
|
dict(e=e, payload=payload))
|
||||||
self._driver_mgr.map(do_notify)
|
self._driver_mgr.map(do_notify)
|
||||||
|
|
||||||
def debug(self, ctxt, event_type, payload):
|
def debug(self, ctxt, event_type, payload):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user