REQ-3300: 调整信息

This commit is contained in:
yanglin 2025-02-27 15:53:29 +08:00
parent 2956c77ac9
commit ef7587bbc7

View File

@ -68,7 +68,6 @@ import cn.axzo.nanopart.ess.api.domain.OrgPerson;
import cn.axzo.nanopart.ess.api.domain.contract.Approver;
import cn.axzo.nanopart.ess.api.enums.EssConsoleUrlEndpoint;
import cn.axzo.nanopart.ess.api.enums.EssEmbedType;
import cn.axzo.nanopart.ess.api.utils.YesOrNo;
import cn.axzo.nanopart.ess.server.dao.EssLogDao;
import cn.axzo.nanopart.ess.server.entity.EssLog;
import cn.axzo.nanopart.ess.server.entity.EssOrg;
@ -427,10 +426,8 @@ public class EssClient implements InitializingBean {
catch (TencentCloudSDKException e) {
log.warn("腾讯云接口调用失败", e);
exception = e;
essLog.setIsError(YesOrNo.YES);
String stackTraceAsString = Throwables.getStackTraceAsString(e);
essLog.addLogContent("exception", stackTraceAsString);
Matcher matcher = ESS_ERROR_REQUEST_ID_PATTERN.matcher(stackTraceAsString);
essLog.setError(e);
Matcher matcher = ESS_ERROR_REQUEST_ID_PATTERN.matcher(Throwables.getStackTraceAsString(e));
if (matcher.find()) {
String requestId = matcher.group(1);
essLog.setRequestId(requestId);