[rabbitmq-discuss] return callback works only once

Francesco Mazzoli francesco at rabbitmq.com
Mon Jul 16 15:11:01 BST 2012


At Mon, 16 Jul 2012 18:02:33 +0400,
Anton Kirilenko wrote:
> def return_callback(self, method, header, body):
>          try:
>              log.debug(str(method))
>              log.debug(str(header))
>              log.debug(str(body))
>          except:
>              log.exception('something happened')
> 
> This is my callback function (I'm using python/pika). It raises no 
> exceptions and it is called only once. Should I add something else in 
> order to 'loop to always receive messages'?

Ignore my previous message, I was thinking about the Erlang client's return
handler, sorry about that. I haven't got much experience with pika, but if this
is a bug it is most likely to be pika's fault, so you should report to the
author as well.

--
Francesco * Often in error, never in doubt


More information about the rabbitmq-discuss mailing list