From dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Thu, 12 Apr 2012 16:42:20 +0000 Subject: Log more information when sending notifications For debugging purposes, it's useful to see what event type is being sent and not just where it's being sent Change-Id: I809a15a76204c79d37ed68b649cd2aea80ad3db2 --- nova/rpc/amqp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nova/rpc/amqp.py b/nova/rpc/amqp.py index 95fe90412..cfa4ad1c1 100644 --- a/nova/rpc/amqp.py +++ b/nova/rpc/amqp.py @@ -373,7 +373,8 @@ def fanout_cast_to_server(context, server_params, topic, msg, def notify(context, topic, msg, connection_pool): """Sends a notification event on a topic.""" - LOG.debug(_('Sending notification on %s...'), topic) + event_type = msg.get('event_type') + LOG.debug(_('Sending %(event_type)s on %(topic)s'), locals()) pack_context(msg, context) with ConnectionContext(connection_pool) as conn: conn.notify_send(topic, msg) -- cgit