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