日志记录租户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
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

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