Improved: Always check if debug verbose is on when using Debug.logVerbose()
(OFBIZ-10052) This completes r1818075, there were still few cases, a last regexp search is never too much :) Found 4 other loops with Strings concatenation, but who cares, it's only verbose logging... There should not be anymore... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818077 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ public class DebugManagedDataSource extends ManagedDataSource {
|
||||
if (Debug.verboseOn()) {
|
||||
if (super.getPool() instanceof GenericObjectPool) {
|
||||
GenericObjectPool objectPool = (GenericObjectPool)super.getPool();
|
||||
if (Debug.verboseOn()) Debug.logVerbose("Borrowing a connection from the pool; used/idle/total: " + objectPool.getNumActive() + "/" + objectPool.getNumIdle() + "/" + (objectPool.getNumActive() + objectPool.getNumIdle()) + "; min idle/max idle/max total: " + objectPool.getMinIdle() + "/" + objectPool.getMaxIdle() + "/" + objectPool.getMaxTotal(), module);
|
||||
Debug.logVerbose("Borrowing a connection from the pool; used/idle/total: " + objectPool.getNumActive() + "/" + objectPool.getNumIdle() + "/" + (objectPool.getNumActive() + objectPool.getNumIdle()) + "; min idle/max idle/max total: " + objectPool.getMinIdle() + "/" + objectPool.getMaxIdle() + "/" + objectPool.getMaxTotal(), module);
|
||||
} else {
|
||||
if (Debug.verboseOn()) Debug.logVerbose("Borrowing a connection from the pool; used/idle/total: " + super.getPool().getNumActive() + "/" + super.getPool().getNumIdle() + "/" + (super.getPool().getNumActive() + super.getPool().getNumIdle()), module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user