|
|
@@ -56,9 +56,6 @@ public class ControllerAspect {
|
|
|
Stopwatch stopwatch = Stopwatch.createStarted();
|
|
|
long startTime = System.currentTimeMillis();
|
|
|
|
|
|
- log.info("request className=[{}], method=[{}], param=[{}]", className, signature.getName(),
|
|
|
- JSONUtils.toJson(pjp.getArgs()));
|
|
|
-
|
|
|
Object result;
|
|
|
try {
|
|
|
result = pjp.proceed();
|
|
|
@@ -71,16 +68,6 @@ public class ControllerAspect {
|
|
|
|
|
|
long elapsedTime = System.currentTimeMillis() - startTime;
|
|
|
|
|
|
- if (result != null && result instanceof String) {
|
|
|
- log.info("response className=[{}], method=[{}], cost=[{}] param=[{}] result=[{}]", className,
|
|
|
- signature.getName(), stopwatch.stop().elapsed(TimeUnit.MILLISECONDS),
|
|
|
- JSONUtils.toJson(pjp.getArgs()), result);
|
|
|
- } else {
|
|
|
- log.info("response className=[{}], method=[{}], cost=[{}] param=[{}] result=[{}]", className,
|
|
|
- signature.getName(), stopwatch.stop().elapsed(TimeUnit.MILLISECONDS),
|
|
|
- JSONUtils.toJson(pjp.getArgs()), JSONUtils.toJson(result));
|
|
|
- }
|
|
|
-
|
|
|
sendRequestLog(pjp, JSONUtils.toJson(result), elapsedTime);
|
|
|
|
|
|
TraceUtils.removeMDC();
|