From 322785371362a7658162fbd744f762f46a0b0c4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 9 Nov 2024 23:51:02 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=94=8A=20Add=20some=20debug=20logging=20in?= =?utf8?q?=20email=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java index e1441f3..89798d0 100644 --- a/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java +++ b/src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java @@ -72,9 +72,12 @@ public class EmailAction implements Action { this.sender = sender; this.recipient = recipient; Properties properties = getProperties(); + logger.debug("Setting mail.smtp.host to " + hostname); properties.put("mail.smtp.host", hostname); session = getInstance(properties); + logger.debug("Created session: " + session); transport = new SMTPTransport(session, new URLName("smtp", hostname, 25, null, "", "")); + logger.debug("Created transport: " + transport); } @VisibleForTesting -- 2.7.4