code format.

This commit is contained in:
wenshao
2017-11-29 21:36:51 +08:00
parent 5ab2c95795
commit bccf940ade
@@ -765,9 +765,11 @@ public abstract class LogFilter extends FilterEventAdapter implements LogFilterM
}
String dbType = statement.getConnectionProxy().getDirectDataSource().getDbType();
String formattedSql = SQLUtils.format(sql, dbType, parameters, this.statementSqlFormatOption);
statementLogError("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement)
+ "} execute error. " + formattedSql, error);
}else{
statementLogError("{conn-" + statement.getConnectionProxy().getId()
+ ", " + stmtId(statement)
+ "} execute error. " + formattedSql
, error);
} else{
statementLogError("{conn-" + statement.getConnectionProxy().getId() + ", " + stmtId(statement)
+ "} execute error. " + sql, error);
}