From 99c534c44dadb15edb1ffd61be105b04a6e63e02 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Thu, 28 Sep 2023 10:05:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=82=AE=E7=AE=B1=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=B5=8B=E8=AF=95log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/jeecg/common/email/EmailServiceManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java b/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java index 2f3cf40c..7c6cec83 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/common/email/EmailServiceManager.java @@ -78,10 +78,10 @@ public class EmailServiceManager { boolean flag = false; try { socket.connect(new InetSocketAddress(email.getEmailServerAddress(),email.getPort()),5000); - log.info("{}邮件服务连接测试成功",email.getEmailServerAddress()); + log.info("{}邮件服务连接测试成功",email.getName()); flag = true; } catch (IOException e) { - log.error("{}邮件服务连接测试失败,请检查邮件服务属性配置是否正确或邮件服务未开启,原因{}",email.getEmailServerAddress(),e.getMessage()); + log.error("{}邮件服务连接测试失败,请检查邮件服务属性配置是否正确或邮件服务未开启,原因{}",email.getName(),e.getMessage()); }finally { try { if(null != socket){