🔊 Add some debug logging in email action
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 9 Nov 2024 22:51:02 +0000 (23:51 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 9 Nov 2024 22:51:02 +0000 (23:51 +0100)
src/main/java/net/pterodactylus/rhynodge/actions/EmailAction.java

index e1441f3..89798d0 100644 (file)
@@ -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