pero        2005/01/29 11:45:55

  Modified:    catalina/src/share/org/apache/catalina/startup
                        HostConfig.java
  Log:
  Add some log.isXXXEnabled
  
  Revision  Changes    Path
  1.54      +5 -3      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/HostConfig.java
  
  Index: HostConfig.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/HostConfig.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- HostConfig.java   26 Jan 2005 14:58:50 -0000      1.53
  +++ HostConfig.java   29 Jan 2005 19:45:55 -0000      1.54
  @@ -553,7 +553,8 @@
               return;
   
           // Assume this is a configuration descriptor and deploy it
  -        log.debug(sm.getString("hostConfig.deployDescriptor", file));
  +        if(log.isDebugEnabled())
  +            log.debug(sm.getString("hostConfig.deployDescriptor", file));
           Context context = null;
           try {
               synchronized (digester) {
  @@ -781,7 +782,8 @@
           DeployedApplication deployedApp = new 
DeployedApplication(contextPath);
           
           // Deploy the application in this WAR file
  -        log.info(sm.getString("hostConfig.deployJar", file));
  +        if(log.isInfoEnabled()) 
  +            log.info(sm.getString("hostConfig.deployJar", file));
           try {
               Context context = (Context) 
Class.forName(contextClass).newInstance();
               if (context instanceof Lifecycle) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to