diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-04-12 16:42:20 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-04-12 16:59:37 +0000 |
| commit | dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b (patch) | |
| tree | 0637be774295210b42bcf996c3cbb14a89d39a77 | |
| parent | 6d750971fde9be564dafe6c4ca25fa8872bf44f3 (diff) | |
| download | nova-dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b.tar.gz nova-dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b.tar.xz nova-dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b.zip | |
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
| -rw-r--r-- | nova/rpc/amqp.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
