Просмотр исходного кода

日志记录租户Job错误信息

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
杨宇庆 7 месяцев назад
Родитель
Сommit
10c0b86f9b

+ 1 - 0
yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/job/TenantJobAspect.java

@@ -46,6 +46,7 @@ public class TenantJobAspect {
                 try {
                     joinPoint.proceed();
                 } catch (Throwable e) {
+                    log.error("occur error while executing job with tenant {}", tenantId, e);
                     results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
                 }
             });