Commit 58c04402 authored by xd's avatar xd

异常栈打印

parent 6b3e04a1
...@@ -65,7 +65,7 @@ public class DaySubJob { ...@@ -65,7 +65,7 @@ public class DaySubJob {
try { try {
sendDaySubjectMessage(); sendDaySubjectMessage();
} catch (Exception e) { } catch (Exception e) {
log.error("====== 异常结束执行 DaySubJob ,错误:{}=======", e); log.error("====== 异常结束执行 DaySubJob ,错误:{}=======", e.getMessage(), e);
} }
log.info("====== 结束执行 DaySubJob ======"); log.info("====== 结束执行 DaySubJob ======");
} }
......
...@@ -75,7 +75,7 @@ public class OrgSyncByWxcpJob { ...@@ -75,7 +75,7 @@ public class OrgSyncByWxcpJob {
orgSyncByWxcp("Y"); orgSyncByWxcp("Y");
} }
} catch (Exception e) { } catch (Exception e) {
log.error("====== 异常结束执行OrgSyncByWxcpJob,错误:{}=======", e.getMessage()); log.error("====== 异常结束执行OrgSyncByWxcpJob,错误:{}=======", e.getMessage(), e);
} }
log.info("====== 结束执行OrgSyncByWxcpJob ======"); log.info("====== 结束执行OrgSyncByWxcpJob ======");
} }
...@@ -105,7 +105,7 @@ public class OrgSyncByWxcpJob { ...@@ -105,7 +105,7 @@ public class OrgSyncByWxcpJob {
wxCpDepartList = getWxCpDepartList(wxCpDefaultConfig); wxCpDepartList = getWxCpDepartList(wxCpDefaultConfig);
wxCpDepartDtoList = getWxCpUserList(wxCpDepartList, wxCpDefaultConfig); wxCpDepartDtoList = getWxCpUserList(wxCpDepartList, wxCpDefaultConfig);
} catch (Exception e) { } catch (Exception e) {
log.error("======从企业微信获取组织信息及员工信息失败->机构:{} -> 错误信息-> {}======", orgId, e.getMessage()); log.error("======从企业微信获取组织信息及员工信息失败->机构:{} -> 错误信息-> {}======", orgId, e.getMessage(), e);
continue; continue;
} }
log.info("======从企业微信获取组织信息及员工信息 结束======"); log.info("======从企业微信获取组织信息及员工信息 结束======");
...@@ -543,7 +543,7 @@ public class OrgSyncByWxcpJob { ...@@ -543,7 +543,7 @@ public class OrgSyncByWxcpJob {
wxCpDepartDto.setMembers(wxCpUsers.size()); wxCpDepartDto.setMembers(wxCpUsers.size());
wxCpDepartDtoArrayList.add(wxCpDepartDto); wxCpDepartDtoArrayList.add(wxCpDepartDto);
} catch (WxErrorException e) { } catch (WxErrorException e) {
log.error("======根据企业微信key 获取企业微信员工信息调用失败,错误:{}=======", e.getMessage()); log.error("======根据企业微信key 获取企业微信员工信息调用失败,错误:{}=======", e.getMessage(), e);
throw new Exception("根据企业微信key 获取企业微信组织结构调用失败"); throw new Exception("根据企业微信key 获取企业微信组织结构调用失败");
} }
} }
...@@ -562,7 +562,7 @@ public class OrgSyncByWxcpJob { ...@@ -562,7 +562,7 @@ public class OrgSyncByWxcpJob {
try { try {
wxCpDeparts = cpService.getDepartmentService().list(null); wxCpDeparts = cpService.getDepartmentService().list(null);
} catch (WxErrorException e) { } catch (WxErrorException e) {
log.error("======根据企业微信key 获取企业微信组织结构调用失败,错误:{}=======", e.getMessage()); log.error("======根据企业微信key 获取企业微信组织结构调用失败,错误:{}=======", e.getMessage(), e);
throw new Exception("根据企业微信key 获取企业微信组织结构调用失败"); throw new Exception("根据企业微信key 获取企业微信组织结构调用失败");
} }
return wxCpDeparts; return wxCpDeparts;
......
...@@ -73,7 +73,7 @@ public class OrgSyncByJyzyService { ...@@ -73,7 +73,7 @@ public class OrgSyncByJyzyService {
orgSyncService.updateData(orgInfoDto.getOrgId(), workUserInfo, workEmployee, workDepartment, workDepartmentEmployee, workEmployeeRole); orgSyncService.updateData(orgInfoDto.getOrgId(), workUserInfo, workEmployee, workDepartment, workDepartmentEmployee, workEmployeeRole);
} catch (Exception e) { } catch (Exception e) {
log.error("=========从 精业展业 同步 机构信息失败,原因--->{}", e.getMessage()); log.error("=========从 精业展业 同步 机构信息失败,原因--->{}", e.getMessage(), e);
return CommonResp.failed(e.getMessage()); return CommonResp.failed(e.getMessage());
} }
return CommonResp.success("同步成功"); return CommonResp.success("同步成功");
...@@ -338,7 +338,7 @@ public class OrgSyncByJyzyService { ...@@ -338,7 +338,7 @@ public class OrgSyncByJyzyService {
// 7 整理数据 将用户安排到 组织下面 // 7 整理数据 将用户安排到 组织下面
return orgInfoDtoBuilder.build(); return orgInfoDtoBuilder.build();
} catch (Exception e) { } catch (Exception e) {
log.error("=======从理财师机构版 数据库中 获取组织及用户 信息 方法出错-->{}======", e.getMessage()); log.error("=======从理财师机构版 数据库中 获取组织及用户 信息 方法出错-->{}======", e.getMessage(), e);
throw new Exception("同步失败,-->" + e.getMessage()); throw new Exception("同步失败,-->" + e.getMessage());
} }
} }
...@@ -365,7 +365,7 @@ public class OrgSyncByJyzyService { ...@@ -365,7 +365,7 @@ public class OrgSyncByJyzyService {
.jyzyUserInfos(userInfoList.stream().filter(jyzyUserInfo -> jyzyUserInfo.getTeamId().equals(jyzyTeam.getId())).collect(Collectors.toList())) .jyzyUserInfos(userInfoList.stream().filter(jyzyUserInfo -> jyzyUserInfo.getTeamId().equals(jyzyTeam.getId())).collect(Collectors.toList()))
.build()).collect(Collectors.toList()); .build()).collect(Collectors.toList());
} catch (Exception e) { } catch (Exception e) {
log.error("=======从精业展业 数据库中 获取组织及用户 信息 方法出错-->{}======", e.getMessage()); log.error("=======从精业展业 数据库中 获取组织及用户 信息 方法出错-->{}======", e.getMessage(), e);
throw new Exception("同步失败,-->" + e.getMessage()); throw new Exception("同步失败,-->" + e.getMessage());
} }
} }
......
...@@ -84,7 +84,7 @@ public class OrgSyncService { ...@@ -84,7 +84,7 @@ public class OrgSyncService {
} }
} catch (Exception e) { } catch (Exception e) {
log.error("======用户:{} 生成小程序球形码失败: {}======", userId, e.getMessage()); log.error("======用户:{} 生成小程序球形码失败: {}======", userId, e.getMessage(), e);
} }
log.info("======用户:{} 生成小程序球形码结束 耗时: {}======", userId, System.currentTimeMillis() - startTime); log.info("======用户:{} 生成小程序球形码结束 耗时: {}======", userId, System.currentTimeMillis() - startTime);
return url; return url;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment