Could you post 
a) what the output looks like now (sans the logging part)
b) what output do you expect

In any event, this routine does not look right to me:

def consume_queue(queue_name):
  conn = boto.connect_sqs()
  q = conn.get_queue(queue_name)
  m =
  while m is not None:
    yield m
    logger.debug('message deleted')
    m =

Reply via email to