Skip to content

Commit

Permalink
Producer logging sending of message
Browse files Browse the repository at this point in the history
  • Loading branch information
jendakol committed Nov 20, 2018
1 parent 18d0ac5 commit 5fe6957
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class DefaultRabbitMQProducer[F[_], A: ProductConverter](name: String,

private def send(routingKey: String, body: Bytes, properties: MessageProperties): Task[Unit] = {
Task {
logger.debug(s"Sending message with ${body.size()} B to exchange $exchangeName with routing key $routingKey and $properties")

try {
sendLock.synchronized {
// see https://www.rabbitmq.com/api-guide.html#channel-threads
Expand Down

0 comments on commit 5fe6957

Please sign in to comment.