Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,7 @@ protected void logDriverInconsistencies(String explicitDriverClassName, String s
LOG.error("Application did not set property database.driver and Spring wasn't able to derive driver class from url. Set the database.driver property and/or review property database.url to make sure a valid url is set.");
}

if (NEW_MYSQL.equals(explicitDriverClassName)) {
LOG.warn("Application explicitly set the driver class to " + NEW_MYSQL + ". Broadleaf recommends using driver class " + OLD_MYSQL + " as it performs better. Set \"database.driver=" + OLD_MYSQL + "\" to use the more performant driver.");
}

if (explicitDriverClassName == null && NEW_MYSQL.equals(springDriverClassName)) {
LOG.warn("Application did not set property database.driver when using MySQL therefore driver class " + NEW_MYSQL + " will be used per Spring's recommendation. Broadleaf suggests using driver class " + OLD_MYSQL + " as it performs better than " + NEW_MYSQL + ".");
}

if (explicitDriverClassName != null && !explicitDriverClassName.equals(springDriverClassName) && !OLD_MYSQL.equals(explicitDriverClassName)) {
if (explicitDriverClassName != null && !explicitDriverClassName.equals(springDriverClassName) && !NEW_MYSQL.equals(explicitDriverClassName)) {
LOG.warn("Application explicitly set the driver class to " + explicitDriverClassName + " which does not equal Spring's recommended driver class of " + springDriverClassName + ". If this is not on purpose please set the property database.driver to \"database.driver=\" to use Spring's recommended driver.");
}
}
Expand Down