Commit 10c0b86f9b88c795f73ba506b6ac8d8727addbff

Authored by 杨宇庆
Committed by Gitee
1 parent 31f28c04

日志记录租户Job错误信息

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
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 {
46 46 try {
47 47 joinPoint.proceed();
48 48 } catch (Throwable e) {
  49 + log.error("occur error while executing job with tenant {}", tenantId, e);
49 50 results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
50 51 }
51 52 });
... ...