tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r382005 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java
Date Wed, 01 Mar 2006 12:44:39 GMT
Author: fhanik
Date: Wed Mar  1 04:44:37 2006
New Revision: 382005

URL: http://svn.apache.org/viewcvs?rev=382005&view=rev
Log:
Changed warnings to debug messages

Modified:
    tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java

Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java?rev=382005&r1=382004&r2=382005&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java
(original)
+++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/startup/ClusterRuleSetFactory.java
Wed Mar  1 04:44:37 2006
@@ -36,14 +36,14 @@
             return loadRuleSet(prefix,"org.apache.catalina.cluster.ClusterRuleSet",ClusterRuleSetFactory.class.getClassLoader());
         } catch ( Exception x ) {
             //display warning
-            if ( log.isWarnEnabled() ) log.warn("Unable to load ClusterRuleSet, falling back
on context classloader",x);
+            if ( log.isDebugEnabled() ) log.debug("Unable to load ClusterRuleSet (org.apache.catalina.cluster.ClusterRuleSet),
falling back on context classloader");
         }
         //try to load it from the context class loader
         try {
             return loadRuleSet(prefix,"org.apache.catalina.cluster.ClusterRuleSet",Thread.currentThread().getContextClassLoader());
         } catch ( Exception x ) {
             //display warning
-            if ( log.isWarnEnabled() ) log.warn("Unable to load ClusterRuleSet, will try
to load the HA cluster",x);
+            if ( log.isDebugEnabled() ) log.debug("Unable to load ClusterRuleSet (org.apache.catalina.cluster.ClusterRuleSet),
will try to load the HA cluster");
         }
         
         //NEW CLUSTER 2
@@ -52,17 +52,17 @@
             return loadRuleSet(prefix,"org.apache.catalina.ha.ClusterRuleSet",ClusterRuleSetFactory.class.getClassLoader());
         } catch ( Exception x ) {
             //display warning
-            if ( log.isWarnEnabled() ) log.warn("Unable to load HA ClusterRuleSet, falling
back on context classloader",x);
+            if ( log.isDebugEnabled() ) log.debug("Unable to load HA ClusterRuleSet (org.apache.catalina.ha.ClusterRuleSet),
falling back on context classloader");
         }
         //try to load it from the context class loader
         try {
             return loadRuleSet(prefix,"org.apache.catalina.ha.ClusterRuleSet",Thread.currentThread().getContextClassLoader());
         } catch ( Exception x ) {
             //display warning
-            if ( log.isWarnEnabled() ) log.warn("Unable to load HA ClusterRuleSet, falling
back on DefaultClusterRuleSet",x);
+            if ( log.isDebugEnabled() ) log.debug("Unable to load HA ClusterRuleSet (org.apache.catalina.ha.ClusterRuleSet),
falling back on DefaultClusterRuleSet");
         }
 
-        
+        log.info("Unable to find a cluster rule set in the classpath. Will load the default
rule set.");
         return new DefaultClusterRuleSet(prefix);
     }
     



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


Mime
View raw message