directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1434841 - /directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java
Date Thu, 17 Jan 2013 18:15:17 GMT
Author: elecharny
Date: Thu Jan 17 18:15:17 2013
New Revision: 1434841

URL: http://svn.apache.org/viewvc?rev=1434841&view=rev
Log:
Added a logger 

Modified:
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java?rev=1434841&r1=1434840&r2=1434841&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/search/impl/DefaultSearchEngine.java
Thu Jan 17 18:15:17 2013
@@ -44,6 +44,8 @@ import org.apache.directory.server.xdbm.
 import org.apache.directory.server.xdbm.search.Optimizer;
 import org.apache.directory.server.xdbm.search.PartitionSearchResult;
 import org.apache.directory.server.xdbm.search.SearchEngine;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**
@@ -54,6 +56,9 @@ import org.apache.directory.server.xdbm.
  */
 public class DefaultSearchEngine implements SearchEngine
 {
+    /** The logger */
+    private static final Logger LOG = LoggerFactory.getLogger( DefaultSearchEngine.class
);
+
     /** the Optimizer used by this DefaultSearchEngine */
     private final Optimizer optimizer;
 
@@ -193,6 +198,8 @@ public class DefaultSearchEngine impleme
 
         long nbResults = cursorBuilder.build( root, searchResult );
 
+        LOG.debug( "Nb results : {} for filter : {}", nbResults, root );
+
         if ( nbResults < Long.MAX_VALUE )
         {
             for ( String uuid : uuidSet )



Mime
View raw message