Browse files

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
  • Loading branch information...
jerdfelt committed Apr 12, 2012
1 parent 6d75097 commit dbff603c4a5cfc66bb7e0075b0ee3361c0211d1b
Showing with 2 additions and 1 deletion.
  1. +2 −1 nova/rpc/
@@ -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)

0 comments on commit dbff603

Please sign in to comment.