Merge branch 'refs/heads/master' into REQ-2393

This commit is contained in:
wangli 2024-04-26 14:51:57 +08:00
commit 1f62e5b6df

View File

@ -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()));
}
}
}