日志记录租户Job错误信息

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
This commit is contained in:
杨宇庆
2024-08-28 05:58:19 +00:00
committed by Gitee
parent 31f28c0419
commit 10c0b86f9b

View File

@ -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));
}
});