diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java index ea4a6e6c51..3e96ca8e71 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/DingNoticeSender.java @@ -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 { diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java index 689e4fc4b8..83e8955928 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/LarkNoticeSender.java @@ -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); } diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java index b534b430a5..e9a16b8f50 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/MailNoticeSender.java @@ -47,7 +47,7 @@ public class MailNoticeSender extends AbstractNoticeSender { } List 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); diff --git a/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java b/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java index 6e52ccd323..018a118be3 100644 --- a/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java +++ b/backend/src/main/java/io/metersphere/notice/sender/impl/WeComNoticeSender.java @@ -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) {