From fbd2a189104fb37e98da6e4b9a9a911c91c0d977 Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Sun, 22 May 2022 05:36:15 +0900 Subject: [PATCH] Add log when connection not added. --- src/main/java/com/zaxxer/hikari/pool/HikariPool.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zaxxer/hikari/pool/HikariPool.java b/src/main/java/com/zaxxer/hikari/pool/HikariPool.java index 40326d14..c735f594 100644 --- a/src/main/java/com/zaxxer/hikari/pool/HikariPool.java +++ b/src/main/java/com/zaxxer/hikari/pool/HikariPool.java @@ -735,7 +735,10 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag } } finally { - if (added && loggingPrefix != null) logPoolState(loggingPrefix); + if (added && loggingPrefix != null) + logPoolState(loggingPrefix); + else + logPoolState("Connection not added, "); } // Pool is suspended, shutdown, or at max size