[rabbitmq-discuss] Pika v0.9.5, how to get the routing key when consuming

Denis Conan Denis.Conan at telecom-sudparis.eu
Sun May 1 19:34:00 BST 2011


Hi all,

not being a Python programmer, it is difficult to find how the next lines from 
an old version of Pika must be written in v0.9.5:
def callback(ch, method, properties, body):
     print " [x] %r:%r" % (method.routing_key, body,)

More precisely, how to get the routing key of message consumed?

Thanks in advance.

Denis


More information about the rabbitmq-discuss mailing list