Commit baf780fc authored by 王亮's avatar 王亮

fix some issues.

parent 075e2adb
...@@ -51,8 +51,8 @@ public class LogCallHttpAspect { ...@@ -51,8 +51,8 @@ public class LogCallHttpAspect {
long elapsed = stopwatch.stop().elapsed(TimeUnit.MILLISECONDS); long elapsed = stopwatch.stop().elapsed(TimeUnit.MILLISECONDS);
String resultStr = result == null ? "" : JSON.toJSONString(result); String resultStr = result == null ? "" : JSON.toJSONString(result);
resultStr = resultStr.length() < 500 ? resultStr : resultStr.substring(0, 500); resultStr = resultStr.length() < 500 ? resultStr : resultStr.substring(0, 500);
log.info("[httpRequestLog],url:[{}],duration:[{}],[耗时区间]{},remoteIP:[{}],args:[{}],exception:[{}],result:[{}]", log.info("[httpRequestLog],url:[{}],duration:[{}],[耗时区间]{},remoteIP:[{}],exception:[{}],result:[{}]",
request.getRequestURL(), elapsed, slowlyTag(elapsed), remoteIP, JSON.toJSONString(args), hasException, resultStr); request.getRequestURL(), elapsed, slowlyTag(elapsed), remoteIP, hasException, resultStr);
} }
return result; return result;
} }
......
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