summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-03-18 04:50:49 +0000
committerTarmac <>2011-03-18 04:50:49 +0000
commitca5d2ee26ac611b7f2e323790d876342e2ae1c31 (patch)
tree0c2c5b87a6a0b217ef80e0895a407b902e59d3cc /nova
parentd6e6ba0780faa962b35635dbd9f62818a98f5313 (diff)
parent79ed4a643df34029391685e13f04e3bfb8afa215 (diff)
downloadnova-ca5d2ee26ac611b7f2e323790d876342e2ae1c31.tar.gz
nova-ca5d2ee26ac611b7f2e323790d876342e2ae1c31.tar.xz
nova-ca5d2ee26ac611b7f2e323790d876342e2ae1c31.zip
Make the rpc cast/call debug calls show what topic they are sending to. This aides in debuugging.
Diffstat (limited to 'nova')
-rw-r--r--nova/rpc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/rpc.py b/nova/rpc.py
index fbb90299b..58715963a 100644
--- a/nova/rpc.py
+++ b/nova/rpc.py
@@ -311,7 +311,7 @@ def _pack_context(msg, context):
def call(context, topic, msg):
"""Sends a message on a topic and wait for a response"""
- LOG.debug(_("Making asynchronous call..."))
+ LOG.debug(_("Making asynchronous call on %s ..."), topic)
msg_id = uuid.uuid4().hex
msg.update({'_msg_id': msg_id})
LOG.debug(_("MSG_ID is %s") % (msg_id))
@@ -352,7 +352,7 @@ def call(context, topic, msg):
def cast(context, topic, msg):
"""Sends a message on a topic without waiting for a response"""
- LOG.debug(_("Making asynchronous cast..."))
+ LOG.debug(_("Making asynchronous cast on %s..."), topic)
_pack_context(msg, context)
conn = Connection.instance()
publisher = TopicPublisher(connection=conn, topic=topic)