Commit 5264a186 authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent 141dc05a
......@@ -17,8 +17,8 @@ public class DbPrintSqlDefault implements DbPrintSql {
public void printSql(SqlInfo sqlInfo, long time, int row) {
String sql = getStringSql(sqlInfo.getSql(), sqlInfo.getParas());
// 打印SQL语句
String tag = String.format("%d row %d ms %s.%s", row, time, sqlInfo.getTargetClass().getSimpleName(), sqlInfo.getSqlName());
Log.infoTag(DbExecutePrintSql.class, tag, sql);
String tag = String.format("%d row %d ms %s", row, time, sqlInfo.getSqlName());
Log.infoTag(sqlInfo.getTargetClass(), tag, sql);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment