User: ejort
Date: 02/02/09 08:09:25
Modified: src/main/org/jboss/mail MailService.java
Log:
Guarded info logging. Faster when not interested in life-cycle logging
Revision Changes Path
1.7 +5 -3 jboss/src/main/org/jboss/mail/MailService.java
Index: MailService.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/mail/MailService.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- MailService.java 11 Sep 2001 18:35:02 -0000 1.6
+++ MailService.java 9 Feb 2002 16:09:24 -0000 1.7
@@ -28,7 +28,7 @@
* in JNDI under java:/ namespace with the name provided with method {@link
#setJNDIName}.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a>
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class MailService
extends ServiceMBeanSupport
@@ -135,7 +135,8 @@
Reference ref = new Reference(Session.class.getName(), addr,
NonSerializableFactory.class.getName(), null);
ctx.bind(n.get(0), ref);
- log.info("Mail Service '" + getJNDIName() + "' bound to " +
m_bindName);
+ if (log.isInfoEnabled())
+ log.info("Mail Service '" + getJNDIName() + "' bound to " +
m_bindName);
}
private void unbind() throws NamingException
@@ -144,7 +145,8 @@
{
new InitialContext().unbind(m_bindName);
NonSerializableFactory.unbind(m_bindName);
- log.info("Mail service '" + getJNDIName() + "' removed from
JNDI");
+ if (log.isInfoEnabled())
+ log.info("Mail service '" + getJNDIName() + "' removed from
JNDI");
}
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development