sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-testing-email] 03/05: SLING-6949 - Create testing utilities for email-enabled applications
Date Tue, 07 Nov 2017 10:17:19 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.testing.email-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-email.git

commit b374e4c698b599923a4fae115645f2c7ecf86efe
Author: Robert Munteanu <rombert@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/testing/email@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" <commits@sling.apache.org>.

Mime
View raw message