Commit ad77e19a authored by Federico Sismondi's avatar Federico Sismondi

better logs on errors

parent 5867e670
......@@ -104,6 +104,7 @@ class AmqpListener(threading.Thread):
except Exception as e:
logging.error(e)
logging.error('message received:\n\tr_key: %s\n\t%s'%(method.routing_key,body))
finally:
ch.basic_ack(delivery_tag=method.delivery_tag)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment