]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Change callbacks logging from INFO to DEBUG
authorAssaf Muller <amuller@redhat.com>
Wed, 22 Apr 2015 16:12:47 +0000 (12:12 -0400)
committerAssaf Muller <amuller@redhat.com>
Wed, 22 Apr 2015 16:13:55 +0000 (12:13 -0400)
This is an internal implementation detail, would admins care
if internal events are being fired off successfully? What actionable
information does this present?

Change-Id: I81418c1ff529b5a8ffe60513d91f51d134a45f26

neutron/callbacks/manager.py

index 365a54f27f37e005992f46febcf03b9c96f2deb8..a215326f1e6258306403b1c202c5460bdbec6ecd 100644 (file)
@@ -19,7 +19,7 @@ from oslo_utils import reflection
 from neutron.callbacks import events
 from neutron.callbacks import exceptions
 from neutron.callbacks import resources
-from neutron.i18n import _LE, _LI
+from neutron.i18n import _LE
 
 LOG = logging.getLogger(__name__)
 
@@ -132,14 +132,14 @@ class CallbacksManager(object):
 
     def _notify_loop(self, resource, event, trigger, **kwargs):
         """The notification loop."""
-        LOG.info(_LI("Notify callbacks for %(resource)s, %(event)s"),
-                 {'resource': resource, 'event': event})
+        LOG.debug("Notify callbacks for %(resource)s, %(event)s",
+                  {'resource': resource, 'event': event})
 
         errors = []
         # TODO(armax): consider using a GreenPile
         for callback_id, callback in self._callbacks[resource][event].items():
             try:
-                LOG.info(_LI("Calling callback %s"), callback_id)
+                LOG.debug("Calling callback %s", callback_id)
                 callback(resource, event, trigger, **kwargs)
             except Exception as e:
                 LOG.exception(_LE("Error during notification for "