From fa0188017afdd9f01c3e7543ed239ceec6c00bb4 Mon Sep 17 00:00:00 2001 From: Kevin Benton Date: Sun, 12 Feb 2017 05:47:34 -0800 Subject: [PATCH] Only log IDs of callbacks in debug message Logging the ID of the callback should be enough since the ID contains the path to the callback. Before: Notify callbacks [('neutron.services.segments.db._update_segment_host_mapping_for_agent-8784700722903', )] for agent, after_create _notify_loop" After: Notify callbacks ['neutron.services.segments.db._update_segment_host_mapping_for_agent-8784700722903'] for agent, after_create _notify_loop" TrivialFix Change-Id: I01d886f2707479183d7ae9c530f5f3b7b3963340 --- neutron/callbacks/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/callbacks/manager.py b/neutron/callbacks/manager.py index 73c6d0a6441..5411fac0fa8 100644 --- a/neutron/callbacks/manager.py +++ b/neutron/callbacks/manager.py @@ -139,7 +139,7 @@ class CallbacksManager(object): errors = [] callbacks = list(self._callbacks[resource].get(event, {}).items()) LOG.debug("Notify callbacks %s for %s, %s", - callbacks, resource, event) + [c[0] for c in callbacks], resource, event) # TODO(armax): consider using a GreenPile for callback_id, callback in callbacks: try: