From 57378d89678f1b6a9587767578a9883fd003b127 Mon Sep 17 00:00:00 2001 From: Laird Nelson Date: Fri, 14 Feb 2025 09:18:46 -0800 Subject: [PATCH] Fixes apparent omission of String.format calls in Http1ConnectionCache.java (#9797) Signed-off-by: Laird Nelson --- .../webclient/http1/Http1ConnectionCache.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ConnectionCache.java b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ConnectionCache.java index 1ea7a1a842a..02abd330e1e 100644 --- a/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ConnectionCache.java +++ b/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ConnectionCache.java @@ -188,24 +188,24 @@ private boolean finishRequest(LinkedBlockingDeque connectio if (connectionQueue.offer(conn, QUEUE_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS)) { conn.helidonSocket().idle(); // mark it as idle to stay blocked at read for closed conn detection if (LOGGER.isLoggable(DEBUG)) { - LOGGER.log(DEBUG, "[%s] client connection returned %s", - conn.channelId(), - Thread.currentThread().getName()); + LOGGER.log(DEBUG, String.format("[%s] client connection returned %s", + conn.channelId(), + Thread.currentThread().getName())); } return true; } else { if (LOGGER.isLoggable(DEBUG)) { - LOGGER.log(DEBUG, "[%s] Unable to return client connection because queue is full %s", - conn.channelId(), - Thread.currentThread().getName()); + LOGGER.log(DEBUG, String.format("[%s] Unable to return client connection because queue is full %s", + conn.channelId(), + Thread.currentThread().getName())); } } } catch (InterruptedException e) { if (LOGGER.isLoggable(DEBUG)) { - LOGGER.log(DEBUG, "[%s] Unable to return client connection due to '%s' %s", - conn.channelId(), - e.getMessage(), - Thread.currentThread().getName()); + LOGGER.log(DEBUG, String.format("[%s] Unable to return client connection due to '%s' %s", + conn.channelId(), + e.getMessage(), + Thread.currentThread().getName())); } } }