You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:28:21 UTC
[sling-org-apache-sling-testing-email] 03/06: SLING-6949 - Create
testing utilities for email-enabled applications
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-email.git
commit c96430c57747e880f3f4ff722a69d189a5b52714
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Jun 13 13:13:48 2017 +0000
SLING-6949 - Create testing utilities for email-enabled applications
Log the SmptServerWrapper startup port
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1798598 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main/java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java b/src/main/java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java
index 046b626..ca44c23 100644
--- a/src/main/java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java
+++ b/src/main/java/org/apache/sling/testing/email/impl/SmtpServerWrapper.java
@@ -30,6 +30,8 @@ import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.Designate;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.subethamail.smtp.server.SMTPServer;
import org.subethamail.wiser.Wiser;
import org.subethamail.wiser.WiserMessage;
@@ -40,6 +42,8 @@ import org.subethamail.wiser.WiserMessage;
@Designate(ocd = SmtpServerWrapper.Config.class)
public class SmtpServerWrapper {
+ private final Logger logger = LoggerFactory.getLogger(getClass());
+
@ObjectClassDefinition(name="Apache Sling Testing SMTP Server Wrapper")
public @interface Config {
@@ -65,6 +69,8 @@ public class SmtpServerWrapper {
}
effectiveBindPort = bindPort;
+
+ logger.info("Started, Wiser listening on port {}", effectiveBindPort);
}
private int reflectiveGetEffectiveBindPort(SMTPServer server) throws ReflectiveOperationException {
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.