Commit a4228b927be6d8ff2f9600e12f880530a5179ae3
Committed by
Gitee
!1059 日志记录租户Job错误信息
Merge pull request !1059 from 杨宇庆/N/A
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 | }); |