fix - 彻底优化日志AOP

This commit is contained in:
2026-06-09 00:41:58 +08:00
parent 647f8d164b
commit 2831f6b35a

View File

@@ -48,14 +48,7 @@ public class ControllerLogAspect {
reqLog.append(" | memberId=").append(memberId); reqLog.append(" | memberId=").append(memberId);
} }
Object result; Object result = pjp.proceed();
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;
}
long cost = System.currentTimeMillis() - startTime; long cost = System.currentTimeMillis() - startTime;