]> source.dussan.org Git - archiva.git/commitdiff
log exceptions caught in the searcher
authorMaria Odea B. Ching <oching@apache.org>
Wed, 9 Jul 2008 05:24:34 +0000 (05:24 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Wed, 9 Jul 2008 05:24:34 +0000 (05:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@675097 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java

index 1794535ddaa5e6197203a544924c6164bbd399a0..3d6896cba8f6c6c095ce11ba4c3e5488e978f136 100644 (file)
@@ -40,6 +40,8 @@ import org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentRecord;
 import org.apache.maven.archiva.indexer.search.CrossRepositorySearch;
 import org.apache.maven.archiva.indexer.search.SearchResultLimits;
 import org.apache.maven.archiva.indexer.search.SearchResults;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Searcher used for testing purposes only.
@@ -50,6 +52,8 @@ import org.apache.maven.archiva.indexer.search.SearchResults;
 public class IndexJavaPublicMethodsCrossRepositorySearch
     implements CrossRepositorySearch
 {
+    private Logger log = LoggerFactory.getLogger( IndexJavaPublicMethodsCrossRepositorySearch.class );
+    
     private ManagedRepositoryConfiguration localIndexedRepo;
     
     private RepositoryContentIndexFactory indexFactory;
@@ -82,6 +86,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
         }
         catch ( ParseException e )
         {   
+            log.error( e.getMessage() );
         }
        
         return new SearchResults();
@@ -169,7 +174,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
                     }
                     catch ( java.text.ParseException e )
                     {
-                        
+                        log.error( e.getMessage() );
                     }
                 }
             }
@@ -177,7 +182,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
         }
         catch ( IOException e )
         {
-            
+            log.error( e.getMessage() );
         }
         finally
         {
@@ -190,7 +195,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
             }
             catch ( IOException ie )
             {
-                
+                log.error( ie.getMessage() );
             }
         }
 
@@ -208,7 +213,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
             }
             catch ( RepositoryIndexSearchException e )
             {
-                
+                log.error( e.getMessage() );
             }
         }
         return searchableList;