tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp SimpleTcpCluster.java
Date Mon, 22 Nov 2004 14:51:52 GMT
pero        2004/11/22 06:51:52

  Modified:    modules/cluster/src/share/org/apache/catalina/cluster/tcp
                        SimpleTcpCluster.java
  Log:
  Better log support to see detail information at debug level.
  
  Revision  Changes    Path
  1.54      +6 -7      jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
  
  Index: SimpleTcpCluster.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- SimpleTcpCluster.java	11 Nov 2004 14:47:27 -0000	1.53
  +++ SimpleTcpCluster.java	22 Nov 2004 14:51:52 -0000	1.54
  @@ -268,9 +268,6 @@
       }
   
       
  -
  -
  -
       // --------------------------------------------------------- Public Methods
   
   
  @@ -369,9 +366,11 @@
           if (started)
               throw new LifecycleException
                   (sm.getString("cluster.alreadyStarted"));
  -        log.info("Cluster is about to start");
  +        if(log.isInfoEnabled())
  +            log.info("Cluster is about to start");
           try {
  -            log.debug("Invoking addValve on "+getContainer()+ " with class="+valve.getClass().getName());
  +            if(log.isDebugEnabled())
  +                log.debug("Invoking addValve on "+getContainer()+ " with class="+valve.getClass().getName());
               IntrospectionUtils.callMethodN(getContainer(), 
                   "addValve", 
                   new Object[]  {valve}, 
  @@ -387,7 +386,7 @@
               try {
                   if ( clusterDeployer != null ) {
                       clusterDeployer.setCluster(this);
  -                    Object deployer = IntrospectionUtils.getProperty(getContainer(), "deployer");
  +                    // Object deployer = IntrospectionUtils.getProperty(getContainer(),
"deployer");
                       // FIXME: clusterDeployer.setDeployer( (org.apache.catalina.Deployer)
deployer);
                       // clusterDeployer.setDeployer( deployer);
                       clusterDeployer.start();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message