Browse Source

RESOLVED - issue SPR-6348: ResourceDatabasePopulator is too verbose when reporting ignored failures

http://jira.springframework.org/browse/SPR-6348

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2437 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
David Syer 16 years ago
parent
commit
2bb550be13
  1. 4
      org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java

4
org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java

@ -155,8 +155,8 @@ public class ResourceDatabasePopulator implements DatabasePopulator { @@ -155,8 +155,8 @@ public class ResourceDatabasePopulator implements DatabasePopulator {
} catch (SQLException ex) {
boolean dropStatement = statement.trim().toLowerCase().startsWith("drop");
if (continueOnError || (dropStatement && ignoreFailedDrops)) {
if (logger.isWarnEnabled()) {
logger.warn("Line " + lineNumber + " statement failed: " + statement, ex);
if (logger.isDebugEnabled()) {
logger.debug("Line " + lineNumber + " statement failed: " + statement, ex);
}
} else {
throw ex;

Loading…
Cancel
Save