From ec9b36dec2f83d1060aa4c5c977e6b00581ab2a2 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin <markmc@redhat.com> Date: Mon, 24 Jun 2013 07:15:52 +0100 Subject: [PATCH] Make LOG private in notifier --- oslo/messaging/notify/notifier.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oslo/messaging/notify/notifier.py b/oslo/messaging/notify/notifier.py index 9f0111700..d76d8b081 100644 --- a/oslo/messaging/notify/notifier.py +++ b/oslo/messaging/notify/notifier.py @@ -36,7 +36,7 @@ _notifier_opts = [ help='AMQP topic used for openstack notifications'), ] -LOG = logging.getLogger(__name__) +_LOG = logging.getLogger(__name__) class _Driver(object): @@ -141,9 +141,9 @@ class Notifier(object): try: ext.obj.notify(ctxt, msg, priority) except Exception as e: - LOG.exception("Problem '%(e)s' attempting to send to " - "notification system. Payload=%(payload)s", - dict(e=e, payload=payload)) + _LOG.exception("Problem '%(e)s' attempting to send to " + "notification system. Payload=%(payload)s", + dict(e=e, payload=payload)) self._driver_mgr.map(do_notify) def debug(self, ctxt, event_type, payload):