incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r801227 - /sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
Date Wed, 05 Aug 2009 13:34:09 GMT
Author: bdelacretaz
Date: Wed Aug  5 13:34:08 2009
New Revision: 801227

URL: http://svn.apache.org/viewvc?rev=801227&view=rev
Log:
Add debug logging about servlet selection/caching

Modified:
    sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java

Modified: sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java?rev=801227&r1=801226&r2=801227&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
(original)
+++ sling/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java
Wed Aug  5 13:34:08 2009
@@ -450,6 +450,7 @@
             final SlingHttpServletRequest request) {
         final Servlet scriptServlet = (this.cache != null ? this.cache.get(locationUtil)
: null);
         if ( scriptServlet != null ) {
+            log.debug("Using cached servlet {}", scriptServlet.getClass().getName());
             return scriptServlet;
         }
 
@@ -481,6 +482,8 @@
                     if ( !hasOptingServlet && !isOptingServlet && this.cache
!= null ) {
                         this.cache.put(locationUtil, candidate);
                     }
+                    log.debug("Using servlet provided by candidate resource {}",
+                            candidateResource.getPath());
                     return candidate;
                 }
                 if ( isOptingServlet ) {



Mime
View raw message