Minor debug logging change.

pull/2241/head
Brett Wooldridge
parent 69394742a6
commit f601340304

@ -10,7 +10,7 @@
<artifact.classifier/>
<docker.maven.plugin.fabric8.version>0.36.0</docker.maven.plugin.fabric8.version>
<felix.bundle.plugin.version>5.1.1</felix.bundle.plugin.version>
<felix.bundle.plugin.version>5.1.9</felix.bundle.plugin.version>
<felix.version>6.0.1</felix.version>
<hibernate.version>5.4.24.Final</hibernate.version>
<javassist.version>3.27.0-GA</javassist.version>

@ -402,9 +402,9 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
void logPoolState(String... prefix)
{
if (logger.isDebugEnabled()) {
logger.debug("{} - {}stats (total={}, active={}, idle={}, waiting={})",
logger.debug("{} - {}stats (total={}/{}, idle={}/{}, active={}, waiting={})",
poolName, (prefix.length > 0 ? prefix[0] : ""),
getTotalConnections(), getActiveConnections(), getIdleConnections(), getThreadsAwaitingConnection());
getTotalConnections(), config.getMaximumPoolSize(), getIdleConnections(), config.getMinimumIdle(), getActiveConnections(), getThreadsAwaitingConnection());
}
}
@ -740,8 +740,6 @@ public final class HikariPool extends PoolBase implements HikariPoolMXBean, IBag
finally {
if (added && loggingPrefix != null)
logPoolState(loggingPrefix);
else
logPoolState("Connection not added, ");
}
// Pool is suspended, shutdown, or at max size

@ -45,7 +45,7 @@ import static java.util.concurrent.locks.LockSupport.parkNanos;
* ThreadLocal lists can be "stolen" when the borrowing thread has none
* of its own. It is a "lock-less" implementation using a specialized
* AbstractQueuedLongSynchronizer to manage cross-thread signaling.
*
* <p>
* Note that items that are "borrowed" from the bag are not actually
* removed from any collection, so garbage collection will not occur
* even if the reference is abandoned. Thus care must be taken to

Loading…
Cancel
Save