diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-07-09 05:24:34 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-07-09 05:24:34 +0000 |
commit | ce73f78809dcd1a3c039dfe9cdb583e39349eda3 (patch) | |
tree | fbcdc941fbed32f0b145ed8f2f721d4aec9886bf | |
parent | 67e651bbc4677a8a99a21b3d721f969ab3b64a85 (diff) | |
download | archiva-ce73f78809dcd1a3c039dfe9cdb583e39349eda3.tar.gz archiva-ce73f78809dcd1a3c039dfe9cdb583e39349eda3.zip |
log exceptions caught in the searcher
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@675097 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/test/java/org/apache/maven/archiva/consumers/lucene/IndexJavaPublicMethodsCrossRepositorySearch.java | 13 |
1 files 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; |