Commit 71a90e2a authored by lee_mingzhu's avatar lee_mingzhu

解决打印参数时,第一个打印this的问题

parent 4ed2553b
...@@ -50,6 +50,9 @@ public class ParamLogAdvice { ...@@ -50,6 +50,9 @@ public class ParamLogAdvice {
StringBuffer buffer = new StringBuffer(); StringBuffer buffer = new StringBuffer();
if(null != paramNames) { if(null != paramNames) {
for(int i = 0; i < paramNames.length; i ++) { for(int i = 0; i < paramNames.length; i ++) {
if(paramNames.equals("this")){
continue;
}
buffer.append(paramNames[i]).append(":").append(params[i]).append(" "); buffer.append(paramNames[i]).append(":").append(params[i]).append(" ");
} }
String logInfo = buffer.toString().substring(0, buffer.toString().length() - 1); String logInfo = buffer.toString().substring(0, buffer.toString().length() - 1);
......
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