企业微信通知和飞书通知增加发送失败的日志打印

This commit is contained in:
lizhongyuan3 2023-12-18 14:00:02 +08:00
parent 1c9f9fb9c5
commit 8eeac834a3
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public class LarkAlarm extends AbstractAlarm<AlarmContext> {
if (execute.isOk()) { if (execute.isOk()) {
return true; return true;
} }
log.error("发送lark消息失败:{}", execute.body()); LogUtils.error(log, "发送lark消息失败:{}", execute.body());
return false; return false;
} catch (Exception e) { } catch (Exception e) {
log.error("发送lark消息失败", e); log.error("发送lark消息失败", e);

View File

@ -60,7 +60,7 @@ public class QiYeWechatAlarm extends AbstractAlarm<AlarmContext> {
if (execute.isOk()) { if (execute.isOk()) {
return true; return true;
} }
log.error("发送企业微信消息失败:{}", execute.body()); LogUtils.error(log, "发送企业微信消息失败:{}", execute.body());
return false; return false;
} catch (Exception e) { } catch (Exception e) {
log.error("发送企业微信消息失败", e); log.error("发送企业微信消息失败", e);