From 39d2f0300b9d3c3d3ec5cfb9e452a8fcc9386c1c Mon Sep 17 00:00:00 2001 From: marcsello Date: Wed, 4 Aug 2021 15:59:54 +0200 Subject: [PATCH] More verboe error message --- cnn_classification_service/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnn_classification_service/main.py b/cnn_classification_service/main.py index 2c9c684..c9c4d52 100644 --- a/cnn_classification_service/main.py +++ b/cnn_classification_service/main.py @@ -33,7 +33,7 @@ def message_callback(channel, method, properties, body): try: results = MagicDoer.run_everything(msg) # <- This is where the magic happens 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) channel.basic_nack(delivery_tag=method.delivery_tag, requeue=True) return