From: David ‘Bombe’ Roden Date: Sat, 9 Nov 2024 22:51:02 +0000 (+0100) Subject: 🔊 Add some debug logging in email action X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=322785371362a7658162fbd744f762f46a0b0c4f;p=rhynodge.git 🔊 Add some debug logging in email action --- 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