KEYCLOAK-1506 Mysql warning at startup

This commit is contained in:
mposolda 2016-02-02 14:28:24 +01:00
parent 00e50111b1
commit 958c379688

View file

@ -160,8 +160,13 @@ public class LiquibaseJpaUpdaterProvider implements JpaUpdaterProvider {
@Override
public void warning(String message) {
// Ignore this warning as cascaded drops doesn't work anyway with all DBs, which we need to support
if ("Database does not support drop with cascade".equals(message)) {
LiquibaseJpaUpdaterProvider.logger.debug(message);
} else {
LiquibaseJpaUpdaterProvider.logger.warn(message);
}
}
@Override
public void warning(String message, Throwable e) {