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