Skip to content

Commit ba57b6c

Browse files
authored
Merge pull request #205 from avast/chore/change-log-level
chore: core - publisher confirmations - change log level of the message in the case of unexpected delivery tag
2 parents a3ac77f + 2c02800 commit ba57b6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/scala/com/avast/clients/rabbitmq/publisher/PublishConfirmsRabbitMQProducer.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import cats.implicits._
77
import com.avast.bytes.Bytes
88
import com.avast.clients.rabbitmq.api.{MaxAttemptsReached, MessageProperties, NotAcknowledgedPublish}
99
import com.avast.clients.rabbitmq.logging.ImplicitContextLogger
10-
import com.avast.clients.rabbitmq.{startAndForget, CorrelationId, ProductConverter, ServerChannel}
10+
import com.avast.clients.rabbitmq.{CorrelationId, ProductConverter, ServerChannel, startAndForget}
1111
import com.avast.metrics.scalaeffectapi.Monitor
1212
import com.rabbitmq.client.ConfirmListener
1313

1414
import java.util.concurrent.ConcurrentHashMap
15-
import scala.collection.JavaConverters._
15+
import scala.jdk.CollectionConverters._
1616
class PublishConfirmsRabbitMQProducer[F[_], A: ProductConverter](name: String,
1717
exchangeName: String,
1818
channel: ServerChannel,
@@ -108,7 +108,7 @@ class PublishConfirmsRabbitMQProducer[F[_], A: ProductConverter](name: String,
108108
confirmationCallbacks.get(deliveryTag) match {
109109
case Some(callback) => callback.complete(result)
110110
case None =>
111-
logger.plainError(s"Received confirmation for unknown delivery tag $deliveryTag with result $result. That is unexpected state.")
111+
logger.plainDebug(s"Received confirmation for unknown delivery tag $deliveryTag with result $result.")
112112
}
113113
}
114114
}

0 commit comments

Comments
 (0)