opt:关闭切面sys_log插入
This commit is contained in:
@@ -105,9 +105,6 @@ public class LogAspect {
|
|||||||
log.info("[--request--][请求接口:{}][请求参数:{}]", url, params);
|
log.info("[--request--][请求接口:{}][请求参数:{}]", url, params);
|
||||||
currentTime.set(System.currentTimeMillis());
|
currentTime.set(System.currentTimeMillis());
|
||||||
result = joinPoint.proceed();
|
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) {
|
}catch (Throwable ex) {
|
||||||
StringBuffer errorStack = new StringBuffer();
|
StringBuffer errorStack = new StringBuffer();
|
||||||
errorStack.append("<br/>【异常堆栈:");
|
errorStack.append("<br/>【异常堆栈:");
|
||||||
@@ -177,7 +174,7 @@ public class LogAspect {
|
|||||||
* @param joinPoint join point for advice
|
* @param joinPoint join point for advice
|
||||||
* @param e exception
|
* @param e exception
|
||||||
*/
|
*/
|
||||||
@AfterThrowing(pointcut = "logPointcut()", throwing = "e")
|
// @AfterThrowing(pointcut = "logPointcut()", throwing = "e")
|
||||||
public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
|
public void logAfterThrowing(JoinPoint joinPoint, Throwable e) {
|
||||||
SysLog log = new SysLog("ERROR", System.currentTimeMillis() - currentTime.get());
|
SysLog log = new SysLog("ERROR", System.currentTimeMillis() - currentTime.get());
|
||||||
currentTime.remove();
|
currentTime.remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user