Author: pete.muir(a)jboss.org
Date: 2008-09-30 08:03:43 -0400 (Tue, 30 Sep 2008)
New Revision: 9149
Modified:
trunk/src/main/org/jboss/seam/mail/MailSession.java
Log:
Don't show port as null if not set
Modified: trunk/src/main/org/jboss/seam/mail/MailSession.java
===================================================================
--- trunk/src/main/org/jboss/seam/mail/MailSession.java 2008-09-29 19:40:50 UTC (rev
9148)
+++ trunk/src/main/org/jboss/seam/mail/MailSession.java 2008-09-30 12:03:43 UTC (rev
9149)
@@ -88,7 +88,14 @@
private void createSession()
{
- log.info("Creating JavaMail Session (" + getHost() + ':' +
getPort() + ")");
+ if (getPort() != null)
+ {
+ log.info("Creating JavaMail Session (" + getHost() + ':' +
getPort() + ")");
+ }
+ else
+ {
+ log.info("Creating JavaMail Session (" + getHost() +
")");
+ }
Properties properties = new Properties();
Show replies by date