refactor: 日志修改

This commit is contained in:
Captain.B 2021-08-26 11:16:20 +08:00 committed by 刘瑞斌
parent efe70e2a42
commit 494f58abac
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public class DingNoticeSender extends AbstractNoticeSender {
if (CollectionUtils.isEmpty(phoneList)) {
return;
}
LogUtil.info("钉钉收件人地址: " + phoneList);
LogUtil.info("钉钉收件人地址: {}", phoneList);
at.setAtMobiles(phoneList);
request.setAt(at);
try {

View File

@ -32,7 +32,7 @@ public class LarkNoticeSender extends AbstractNoticeSender {
if (CollectionUtils.isEmpty(collect)) {
return;
}
LogUtil.info("飞书收件人: ", userIds);
LogUtil.info("飞书收件人: {}", userIds);
context += StringUtils.join(collect, " ");
LarkClient.send(messageDetail.getWebhook(), context);
}

View File

@ -47,7 +47,7 @@ public class MailNoticeSender extends AbstractNoticeSender {
}
List<String> emails = super.getUserEmails(noticeModel, userIds);
String[] users = emails.toArray(new String[0]);
LogUtil.info("收件人地址: " + emails);
LogUtil.info("收件人地址: {}", emails);
helper.setText(context, true);
helper.setTo(users);
javaMailSender.send(mimeMessage);

View File

@ -32,7 +32,7 @@ public class WeComNoticeSender extends AbstractNoticeSender {
if (CollectionUtils.isEmpty(phoneLists)) {
return;
}
LogUtil.info("企业微信收件人: ", phoneLists);
LogUtil.info("企业微信收件人: {}", phoneLists);
try {
WxChatbotClient.send(messageDetail.getWebhook(), message);
} catch (IOException e) {