Browse Source

Merge pull request #384 in CORE/base-third from ~ZED/base-third:release/10.0 to release/10.0

* commit '1b0f322d29a4d9e6071d13759ff0526b0e3734c2':
  fix
  DEC-12256 【冒烟】全新工程启动报错
release/10.0
zed 5 years ago
parent
commit
c67cdd37c9
  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

@ -953,21 +953,21 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
return; return;
} }
String errorMessage = ""; String infoMessage = "";
if (isTestOnBorrow()) { if (isTestOnBorrow()) {
errorMessage += "testOnBorrow is true, "; infoMessage += "testOnBorrow is true, ";
} }
if (isTestOnReturn()) { if (isTestOnReturn()) {
errorMessage += "testOnReturn is true, "; infoMessage += "testOnReturn is true, ";
} }
if (isTestWhileIdle()) { if (isTestWhileIdle()) {
errorMessage += "testWhileIdle is true, "; infoMessage += "testWhileIdle is true, ";
} }
LOG.error(errorMessage + "validationQuery not set"); LOG.info(infoMessage + "validationQuery not set");
} }
protected void initCheck() throws SQLException { protected void initCheck() throws SQLException {

Loading…
Cancel
Save