提交 efb26479 编写于 作者: D David Syer

RESOLVED - issue SPR-6348: ResourceDatabasePopulator is too verbose when...

RESOLVED - issue SPR-6348: ResourceDatabasePopulator is too verbose when reporting ignored failures 
http://jira.springframework.org/browse/SPR-6348
上级 534f8a47
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册