From 93c397ea169079209e1fcf3a2966db5fa743170d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Charv=C3=A1t?= Date: Thu, 8 Jun 2023 16:34:43 +0200 Subject: [PATCH] chore: core - publisher confirmations - add more details to the error message in the case of unexpected delivery tag --- .../rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/scala/com/avast/clients/rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala b/core/src/main/scala/com/avast/clients/rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala index 7350cd95..978d4183 100644 --- a/core/src/main/scala/com/avast/clients/rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala +++ b/core/src/main/scala/com/avast/clients/rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala @@ -107,7 +107,8 @@ class PublishConfirmsRabbitMQProducer[F[_], A: ProductConverter](name: String, } else { confirmationCallbacks.get(deliveryTag) match { case Some(callback) => callback.complete(result) - case None => logger.plainError(s"Received confirmation for unknown delivery tag $deliveryTag. That is unexpected state.") + case None => + logger.plainError(s"Received confirmation for unknown delivery tag $deliveryTag with result $result. That is unexpected state.") } } }