日志修改
This commit is contained in:
parent
b9debfecd0
commit
65440cd75c
@ -1,5 +1,6 @@
|
||||
package com.zhgd.xmgl.config;
|
||||
|
||||
import com.zhgd.config.StdOutImplCustom;
|
||||
import com.zhgd.xmgl.constant.Cts;
|
||||
import com.zhgd.xmgl.util.RequestIdUtil;
|
||||
import com.zhgd.xmgl.util.ThreadLocalUtil;
|
||||
@ -66,6 +67,12 @@ public class TaskAspect {
|
||||
// 执行目标方法
|
||||
Object proceed = jointPoint.proceed();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
if (StdOutImplCustom.isPrint()) {
|
||||
throw e;
|
||||
} else {
|
||||
log.error("", e);
|
||||
}
|
||||
} finally {
|
||||
if (null == context) {
|
||||
log.info("task方法结束:{}", methodName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user