Browse Source

改用logger

release/9.0
pony 7 years ago
parent
commit
209e745852
  1. 10
      fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

10
fine-druid/src/com/fr/third/alibaba/druid/pool/DruidDataSource.java

@ -829,7 +829,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
/**
* load filters from SPI ServiceLoader
*
*
* @see ServiceLoader
*/
private void initFromSPIServiceLoader() {
@ -874,7 +874,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
/**
* 会去重复
*
*
* @param filter
*/
private void addFilter(Filter filter) {
@ -1158,7 +1158,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
/**
* 抛弃连接不进行回收而是抛弃
*
*
* @param realConnection
*/
public void discardConnection(Connection realConnection) {
@ -3132,9 +3132,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
private void logActiveCount(boolean isIncrease){
if (logActiveCount){
System.out.println("activeCount " + (isIncrease ? "increase" : "decrease"));
System.out.println("current count is " + activeCount);
new Throwable().printStackTrace();
LOG.debug("activeCount " + (isIncrease ? "increase" : "decrease") + "current count is : " + activeCount, new Throwable());
}
}
}

Loading…
Cancel
Save