incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amitg...@apache.org
Subject svn commit: r1544497 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
Date Fri, 22 Nov 2013 11:38:51 GMT
Author: amitgupt
Date: Fri Nov 22 11:38:50 2013
New Revision: 1544497

URL: http://svn.apache.org/r1544497
Log:
SLING-3250 - [SlingPostServlet] Request Tracking does not include information about PostOperation
Added the log information for the post operation in the SlingPostServlet

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java?rev=1544497&r1=1544496&r2=1544497&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/SlingPostServlet.java
Fri Nov 22 11:38:50 2013
@@ -42,6 +42,7 @@ import org.apache.felix.scr.annotations.
 import org.apache.felix.scr.annotations.Service;
 import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.api.SlingHttpServletResponse;
+import org.apache.sling.api.request.RequestProgressTracker;
 import org.apache.sling.api.resource.ResourceNotFoundException;
 import org.apache.sling.api.resource.ResourceUtil;
 import org.apache.sling.api.servlets.SlingAllMethodsServlet;
@@ -192,7 +193,8 @@ public class SlingPostServlet extends Sl
                 "Invalid operation specified for POST request");
 
         } else {
-
+            request.getRequestProgressTracker().log(
+                    "Calling PostOperation: {0}", operation.getClass().getName());
             final SlingPostProcessor[] processors = this.cachedPostProcessors;
             try {
                 operation.run(request, htmlResponse, processors);



Mime
View raw message