update - 动态日志降级
This commit is contained in:
parent
126c1edae3
commit
5fc68d8c22
@ -109,14 +109,15 @@ public class ErrorReportAspect implements Ordered {
|
||||
* @param joinPoint 切点
|
||||
* @param e 异常
|
||||
*/
|
||||
@AfterThrowing(pointcut = "@within(errorReporter) && @annotation(operation)", throwing = "e")
|
||||
@AfterThrowing(pointcut = "@within(errorReporter) && @annotation(operation)", throwing = "e", argNames = "joinPoint,errorReporter,operation,e")
|
||||
public void doAfterThrowing(JoinPoint joinPoint, ErrorReporter errorReporter, Operation operation, Exception e) {
|
||||
log.info("ErrorReportAspect 记录异常信息: {}", e.getMessage());
|
||||
EnvConfig[] envConfigs = errorReporter.envConfig();
|
||||
for (EnvConfig envConfig : envConfigs) {
|
||||
if (Arrays.asList(envConfig.profiles()).contains(profile)) {
|
||||
envConfig.type().executeAction(profile, operation.summary(), sendDingTalk, joinPoint.getArgs(), joinPoint.getSignature().toShortString(), e,
|
||||
!workflowProperties.getFilterOperations().contains(operation.summary()));
|
||||
workflowProperties.getFilterOperations().contains(operation.summary()));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user