mcconnell 2003/02/17 05:20:49
Modified: src/java/org/apache/james James.java
Log:
A couple of ifInfoEnabled() enhancements.
Revision Changes Path
1.49 +15 -6 jakarta-james/src/java/org/apache/james/James.java
Index: James.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- James.java 17 Feb 2003 13:18:07 -0000 1.48
+++ James.java 17 Feb 2003 13:20:49 -0000 1.49
@@ -216,9 +216,12 @@
/**
* @see org.apache.avalon.framework.activity.Initializable#initialize()
*/
- public void initialize() throws Exception {
-
- getLogger().info("JAMES init...");
+ public void initialize() throws Exception
+ {
+ if( getLogger().isInfoEnabled() )
+ {
+ getLogger().info("JAMES init...");
+ }
// TODO: This should retrieve a more specific named thread pool from
// Context that is set up in server.xml
@@ -252,7 +255,10 @@
context = new DefaultContext();
context.put("HostName", hostName);
- getLogger().info("Local host is: " + hostName);
+ if( getLogger().isInfoEnabled() )
+ {
+ getLogger().info("Local host is: " + hostName);
+ }
// Get the domains and hosts served by this instance
serverNames = new HashSet();
@@ -293,7 +299,7 @@
if (getLogger().isInfoEnabled()) {
for (Iterator i = serverNames.iterator(); i.hasNext(); ) {
- getLogger().info("Handling mail for: " + i.next());
+ getLogger().info("Handling mail for: " + i.next());
}
}
context.put(Constants.SERVER_NAMES, this.serverNames);
@@ -369,7 +375,10 @@
attributes.put("confDir", configDir.getCanonicalPath() );
System.out.println(SOFTWARE_NAME_VERSION);
- getLogger().info("JAMES ...init end");
+ if( getLogger().isInfoEnabled() )
+ {
+ getLogger().info("JAMES ...init end");
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]