Commit 10c0b86f9b88c795f73ba506b6ac8d8727addbff
Committed by
Gitee
1 parent
31f28c04
日志记录租户Job错误信息
Signed-off-by: 杨宇庆 <hiyyq@qq.com>
Showing
1 changed file
with
1 additions
and
0 deletions
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,6 +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 | results.put(tenantId, ExceptionUtil.getRootCauseMessage(e)); | 50 | results.put(tenantId, ExceptionUtil.getRootCauseMessage(e)); |
| 50 | } | 51 | } |
| 51 | }); | 52 | }); |