优化控制台的sql展示格式
This commit is contained in:
parent
2ddbc1f9b7
commit
af7ea2d7da
|
|
@ -23,8 +23,8 @@ public class ReportInterceptor extends DebugInterceptor {
|
|||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("\nBlade beetlsql --------------------- " + DateKit.getTime() + " --------------------------------\n")
|
||||
.append("SQLID : " + ctx.getSqlId().replaceAll("\\s+", " ")).append("\n")
|
||||
.append("SQL : " + ctx.getSql().replaceAll("\\s+", " ")).append("\n")
|
||||
.append("索引 : " + ctx.getSqlId().replaceAll("\\s+", " ")).append("\n")
|
||||
.append("语句 : " + ctx.getSql().replaceAll("\\s+", " ")).append("\n")
|
||||
.append("参数 : " + formatParas(ctx.getParas()))
|
||||
.append("\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user