Skip to content
Permalink
Browse files

Merge pull request #2389 from kevinmeredith/log-request-key

Log Request Key
  • Loading branch information...
ChristopherDavenport committed Feb 6, 2019
2 parents e2cfb6d + a95cbc2 commit bcce4bb2f3953f40afb44b25e9407340a5a91e88
Showing with 2 additions and 2 deletions.
  1. +2 −2 client/src/main/scala/org/http4s/client/PoolManager.scala
@@ -172,7 +172,7 @@ private final class PoolManager[F[_], A <: Connection[F]](
val keys = idleQueues.keys
if (keys.nonEmpty) {
logger.debug(
s"No connections available for the desired key. Evicting random and creating a new connection: $stats")
s"No connections available for the desired key, $key. Evicting random and creating a new connection: $stats")
val randKey = keys.iterator.drop(Random.nextInt(keys.size)).next()
getConnectionFromQueue(randKey)
.fold(logger.warn(s"No connection to evict from the idleQueue for $randKey"))(
@@ -181,7 +181,7 @@ private final class PoolManager[F[_], A <: Connection[F]](
createConnection(key, callback)
} else {
logger.debug(
s"No connections available for the desired key. Adding to waitQueue: $stats")
s"No connections available for the desired key, $key. Adding to waitQueue: $stats")
addToWaitQueue(key, callback)
}

0 comments on commit bcce4bb

Please sign in to comment.
You can’t perform that action at this time.