diff --git a/src/main/java/com/zaxxer/hikari/HikariPool.java b/src/main/java/com/zaxxer/hikari/HikariPool.java index a4c08d2c3..6f1a5fb39 100644 --- a/src/main/java/com/zaxxer/hikari/HikariPool.java +++ b/src/main/java/com/zaxxer/hikari/HikariPool.java @@ -198,7 +198,8 @@ public void releaseConnection(IHikariConnectionProxy connectionProxy) } else { - LOGGER.debug("Connection returned to pool is broken, or the pool is shutting down. Closing connection."); + LOGGER.debug("Connection returned to pool {} is broken, or the pool is shutting down. Closing connection.", + configuration.getPoolName()); closeConnection(connectionProxy); } } @@ -357,7 +358,7 @@ private boolean addConnection() long now = System.currentTimeMillis(); if (now - lastConnectionFailureTime > 1000 || isDebug) { - LOGGER.warn("Connection attempt to database failed (not every attempt is logged): {}", e.getMessage(), (isDebug ? e : null)); + LOGGER.warn("Connection attempt to database {} failed (not every attempt is logged): {}", configuration.getPoolName(), e.getMessage(), (isDebug ? e : null)); } lastConnectionFailureTime = now; return false;