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

This commit is contained in:
YunaiV 2024-08-30 23:19:00 +08:00
parent a4228b927b
commit 86a413f57d

View File

@ -46,7 +46,7 @@ public class TenantJobAspect {
try {
joinPoint.proceed();
} catch (Throwable e) {
log.error("occur error while executing job with tenant {}", tenantId, e);
log.error("[execute][租户({}) 执行 Job 发生异常", tenantId, e);
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
}
});