More verboe error message
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-04 15:59:54 +02:00
parent ea968f9d18
commit 39d2f0300b

View File

@ -33,7 +33,7 @@ def message_callback(channel, method, properties, body):
try: try:
results = MagicDoer.run_everything(msg) # <- This is where the magic happens results = MagicDoer.run_everything(msg) # <- This is where the magic happens
except Exception as e: except Exception as e:
logging.error(f"Something went wrong during AI run: {e}") logging.error(f"Something went wrong during handling sample {msg['tag']} run: {e}; msg: {msg}")
logging.exception(e) logging.exception(e)
channel.basic_nack(delivery_tag=method.delivery_tag, requeue=True) channel.basic_nack(delivery_tag=method.delivery_tag, requeue=True)
return return