Additional debug logging for manager selection
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 2 Jul 2010 10:01:32 +0000 (10:01 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 2 Jul 2010 10:01:32 +0000 (10:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@959931 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/LocalStrings.properties
java/org/apache/catalina/core/StandardContext.java
webapps/docs/changelog.xml

index f628319..b1a794d 100644 (file)
@@ -92,6 +92,7 @@ standardContext.alreadyStarted=Context has already been started
 standardContext.applicationListener=Error configuring application listener of class {0}
 standardContext.applicationSkipped=Skipped installing application listeners due to previous error(s)
 standardContext.badRequest=Invalid request path ({0}).
+standardContext.cluster.noManager=No manager found. Checking if cluster manager should be used. Cluster configured: [{0}], Application distributable: [{1}]
 standardContext.crlfinurl=The URL pattern "{0}" contains a CR or LF and so can never be matched.
 standardContext.duplicateListener=The listener "{0}" is already configured for this context. The duplicate definition has been ignored.
 standardContext.errorPage.error=Error page location {0} must start with a ''/''
@@ -116,6 +117,7 @@ standardContext.loginConfig.errorWarning=WARNING: Form error page {0} must start
 standardContext.loginConfig.loginPage=Form login page {0} must start with a ''/'
 standardContext.loginConfig.loginWarning=WARNING: Form login page {0} must start with a ''/'' in Servlet 2.4
 standardContext.loginConfig.required=LoginConfig cannot be null
+standardContext.manager=Configured a manager of class [{0}]
 standardContext.mappingError=MAPPING configuration error for relative URI {0}
 standardContext.noResourceJar=Resource JARs are not supported. The JAR found at [{0}] will no be used to provide static content for context with path [{1}]
 standardContext.notFound=The requested resource ({0}) is not available.
index 0815363..b4a1bd5 100644 (file)
@@ -4682,6 +4682,11 @@ public class StandardContext extends ContainerBase
                 // Acquire clustered manager
                 Manager contextManager = null;
                 if (manager == null) {
+                    if (log.isDebugEnabled()) {
+                        log.debug(sm.getString("standardContext.cluster.noManager",
+                                Boolean.valueOf((getCluster() != null)),
+                                Boolean.valueOf(distributable)));
+                    }
                     if ( (getCluster() != null) && distributable) {
                         try {
                             contextManager = getCluster().createManager(getName());
@@ -4696,6 +4701,10 @@ public class StandardContext extends ContainerBase
                 
                 // Configure default manager if none was specified
                 if (contextManager != null) {
+                    if (log.isDebugEnabled()) {
+                        log.debug(sm.getString("standardContext.manager",
+                                contextManager.getClass().getName()));
+                    }
                     setManager(contextManager);
                 }
 
index 4714f94..1bd0083 100644 (file)
         than a 200 is returned for requests that don't map to any other context.
         (markt)
       </fix>
+      <add>
+        Additional debug logging in StandardContext to provide information on
+        Manager selection. (markt)
+      </add>
     </changelog>
   </subsection>
   <subsection name="Coyote">