From 8a2b0f584ade156abaaa285d6a0185cbed0c541b Mon Sep 17 00:00:00 2001 From: nfawcett <46357635+nfawcett@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:50:47 +0000 Subject: [PATCH] Improve debug logging around connections that cannot be reused (#515) --- .../http/impl/io/PoolingHttpClientConnectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java index d559d5048..105cbc88a 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java @@ -409,7 +409,7 @@ public class PoolingHttpClientConnectionManager } } else { if (LOG.isDebugEnabled()) { - LOG.debug("{} connection is not kept alive", ConnPoolSupport.getId(endpoint)); + LOG.debug("{} connection is not kept alive(isConsistent:{})", ConnPoolSupport.getId(endpoint), conn.isConsistent()); } } } catch (final RuntimeException ex) {