Skip to content

Commit

Permalink
Better logging for return in rpc handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nwgh committed Feb 12, 2013
1 parent e105796 commit 0bdaeb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stoneridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ def _handle(self, channel, method, properties, body):

body = json.dumps(res)
logging.debug('Returning RPC result %s' % (res,))
logging.debug('Returning to %s' % (properties.correlation_id,))
logging.debug('Returning to %s' % (properties.reply_to,))
logging.debug('Returning for %s' % (properties.correlation_id,))
res_properties = pika.BasicProperties(
correlation_id=properties.correlation_id)
channel.basic_publish(exchange='', routing_key=properties.reply_to,
Expand Down

0 comments on commit 0bdaeb6

Please sign in to comment.