added warning too

pull/502/head
Nitin 9 years ago
parent 74c6f6e2b5
commit 541322a579

@ -767,6 +767,9 @@ public class HikariConfig implements HikariConfigMXBean
}
if (dataSource != null) {
if (dataSourceClassName != null) {
LOGGER.warn("using dataSource and ignoring dataSourceClassName");
}
LOGGER.info("{} - using dataSource={}", poolName, dataSource);
}
else if (dataSourceClassName != null) {
@ -774,6 +777,9 @@ public class HikariConfig implements HikariConfigMXBean
LOGGER.error("cannot use driverClassName and dataSourceClassName together");
throw new IllegalArgumentException("cannot use driverClassName and dataSourceClassName together");
}
else if (jdbcUrl != null) {
LOGGER.warn("using dataSourceClassName and ignoring jdbcUrl");
}
LOGGER.info("{} - using dataSourceClassName={}", poolName, dataSourceClassName);
}
else if (jdbcUrl != null) {

Loading…
Cancel
Save