From ce73f78809dcd1a3c039dfe9cdb583e39349eda3 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Wed, 9 Jul 2008 05:24:34 +0000 Subject: [PATCH] log exceptions caught in the searcher git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@675097 13f79535-47bb-0310-9956-ffa450edef68 --- ...IndexJavaPublicMethodsCrossRepositorySearch.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java index 1794535dd..3d6896cba 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java @@ -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;