log loaded driver when using jdbcUrl (#1136)

pull/1161/head
Sevket Gökay 7 years ago committed by Brett Wooldridge
parent c1ab4c8399
commit b36323213f

@ -101,6 +101,7 @@ public final class DriverDataSource implements DataSource
try {
if (driver == null) {
driver = DriverManager.getDriver(jdbcUrl);
LOGGER.debug("Loaded driver with class name {} for jdbcUrl={}", driver.getClass().getName(), jdbcUrl);
}
else if (!driver.acceptsURL(jdbcUrl)) {
throw new RuntimeException("Driver " + driverClassName + " claims to not accept jdbcUrl, " + jdbcUrl);

Loading…
Cancel
Save