connection = super.getConnection();
} else {
connection = super.getConnection(hints);
}
} catch (PException e) {
throw new PoolException("Error during the allocation a new JDBC connection", e);
}
if (logger != null && logger.isLoggable(BasicLevel.DEBUG)) {
logger.log(BasicLevel.DEBUG,
"New JDBC connection allocated for the pool:" + connection);
}