Commit 730951d65f05a8d2ea56c03276156fb07c684fc2
1 parent
92739faf
添加捕获异常日志记录
Showing
1 changed file
with
1 additions
and
0 deletions
src/main/java/com/cnlive/shenhe/job/LiveApplyJob.java
| ... | ... | @@ -144,6 +144,7 @@ public class LiveApplyJob { |
| 144 | 144 | notice_msg = notice_msg + "\n" + dateTime + " 邮件" + emailAddr + "(" + shyEmail.getRemark() + ")发送成功"; |
| 145 | 145 | } |
| 146 | 146 | } catch (Exception e) { |
| 147 | + logger.info("异常结果为:{}",e.getMessage()); | |
| 147 | 148 | notice_state = CommonConst.NOTICE_FAIL; |
| 148 | 149 | notice_msg = notice_msg + "\n" + dateTime + " 邮件服务器调用失败,服务器报错了"; |
| 149 | 150 | break; | ... | ... |