fix - 彻底优化日志AOP
This commit is contained in:
@@ -48,14 +48,7 @@ public class ControllerLogAspect {
|
||||
reqLog.append(" | memberId=").append(memberId);
|
||||
}
|
||||
|
||||
Object result;
|
||||
try {
|
||||
result = pjp.proceed();
|
||||
} catch (Throwable t) {
|
||||
long cost = System.currentTimeMillis() - startTime;
|
||||
log.warn(reqLog + " | ERROR=" + t.getClass().getSimpleName() + "[" + t.getMessage() + "] | cost=" + cost + "ms");
|
||||
throw t;
|
||||
}
|
||||
Object result = pjp.proceed();
|
||||
|
||||
long cost = System.currentTimeMillis() - startTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user