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