This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.pipes-0.0.10
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-pipes.git

commit 9eb8d4d7a2febd3bad811b2c154cf5743d4aa0b3
Author: Stefan Seifert <[email protected]>
AuthorDate: Tue Jun 21 15:59:32 2016 +0000

    SLING-5735 Pipes XPathPipe does not log query (patch provided by Nicolas 
Peltier)
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/sling-pipes@1749564
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/pipes/XPathPipe.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/java/org/apache/sling/pipes/XPathPipe.java 
b/src/main/java/org/apache/sling/pipes/XPathPipe.java
index f706aaa..5b7cddf 100644
--- a/src/main/java/org/apache/sling/pipes/XPathPipe.java
+++ b/src/main/java/org/apache/sling/pipes/XPathPipe.java
@@ -19,6 +19,9 @@ package org.apache.sling.pipes;
 import org.apache.commons.lang.StringUtils;
 import org.apache.sling.api.resource.Resource;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import javax.jcr.query.Query;
 import java.util.Iterator;
 
@@ -27,6 +30,7 @@ import java.util.Iterator;
  */
 public class XPathPipe extends BasePipe {
 
+    private static final Logger logger = 
LoggerFactory.getLogger(XPathPipe.class);
     public static final String RESOURCE_TYPE = "slingPipes/xpath";
 
     public XPathPipe(Plumber plumber, Resource resource) throws Exception {
@@ -37,6 +41,7 @@ public class XPathPipe extends BasePipe {
     public Iterator<Resource> getOutput() {
         String query = getExpr();
         if (StringUtils.isNotBlank(query)){
+            logger.info("Executing query: {}", query);
             return resource.getResourceResolver().findResources(query, 
Query.XPATH);
         }
         return EMPTY_ITERATOR;

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to