Commit 86a413f57d2a8575a030ccfc9d650fcfc5293694

Authored by YunaiV
1 parent a4228b92

1059 【轻量级 PR】:日志记录租户Job错误信息

yudao-framework/yudao-spring-boot-starter-biz-tenant/src/main/java/cn/iocoder/yudao/framework/tenant/core/job/TenantJobAspect.java
@@ -46,7 +46,7 @@ public class TenantJobAspect { @@ -46,7 +46,7 @@ public class TenantJobAspect {
46 try { 46 try {
47 joinPoint.proceed(); 47 joinPoint.proceed();
48 } catch (Throwable e) { 48 } catch (Throwable e) {
49 - log.error("occur error while executing job with tenant {}", tenantId, e); 49 + log.error("[execute][租户({}) 执行 Job 发生异常", tenantId, e);
50 results.put(tenantId, ExceptionUtil.getRootCauseMessage(e)); 50 results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
51 } 51 }
52 }); 52 });