opt:关闭切面sys_log插入

This commit is contained in:
zhangzq
2025-02-14 10:01:41 +08:00
parent 5e29a39660
commit 6741aa3fac

View File

@@ -105,9 +105,6 @@ public class LogAspect {
log.info("[--request--][请求接口:{}][请求参数:{}]", url, params);
currentTime.set(System.currentTimeMillis());
result = joinPoint.proceed();
// SysLog log = new SysLog("INFO", System.currentTimeMillis() - currentTime.get());
currentTime.remove();
// logServsice.save(getUsername(), StringUtils.getBrowser(request), StringUtils.getIp(request), joinPoint, log);
}catch (Throwable ex) {
StringBuffer errorStack = new StringBuffer();
errorStack.append("<br/>【异常堆栈:");
@@ -177,7 +174,7 @@ public class LogAspect {
* @param joinPoint join point for advice
* @param e exception
*/
@AfterThrowing(pointcut = "logPointcut()", throwing = "e")
// @AfterThrowing(pointcut = "logPointcut()", throwing = "e")
public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
SysLog log = new SysLog("ERROR", System.currentTimeMillis() - currentTime.get());
currentTime.remove();