joerghoh commented on code in PR #22:
URL: 
https://github.com/apache/sling-org-apache-sling-servlets-post/pull/22#discussion_r1267653540


##########
src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java:
##########
@@ -106,7 +108,10 @@ public void run(final SlingHttpServletRequest request,
             try {
                 if (processors != null) {
                     for (SlingPostProcessor processor : processors) {
+                        Instant start = Instant.now();
+                        log.debug("About to perform processor {}", 
processor.getClass().getName());
                         processor.process(request, changes);
+                        log.debug("Performed processor {} in {}", 
processor.getClass().getName(), Duration.between(start, 
Instant.now()).toMillis());

Review Comment:
   can you please also log into the RequestProgressTracker?



##########
src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java:
##########
@@ -108,11 +112,15 @@ public void run(final SlingHttpServletRequest request,
             // invoke processors
             if (processors != null) {
                 for (SlingPostProcessor processor : processors) {
+                    Instant start = Instant.now();
+                    log.debug("About to perform processor {}", 
processor.getClass().getName());
                     processor.process(request, changes);
+                    log.debug("Performed processor {} in {}", 
processor.getClass().getName(), Duration.between(start, 
Instant.now()).toMillis());

Review Comment:
   Can you please also log this message to the RequestProgressTracker?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to