mirror of https://github.com/apache/archiva.git
log exceptions caught in the searcher
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@675097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67e651bbc4
commit
ce73f78809
|
@ -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.CrossRepositorySearch;
|
||||||
import org.apache.maven.archiva.indexer.search.SearchResultLimits;
|
import org.apache.maven.archiva.indexer.search.SearchResultLimits;
|
||||||
import org.apache.maven.archiva.indexer.search.SearchResults;
|
import org.apache.maven.archiva.indexer.search.SearchResults;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Searcher used for testing purposes only.
|
* Searcher used for testing purposes only.
|
||||||
|
@ -50,6 +52,8 @@ import org.apache.maven.archiva.indexer.search.SearchResults;
|
||||||
public class IndexJavaPublicMethodsCrossRepositorySearch
|
public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
implements CrossRepositorySearch
|
implements CrossRepositorySearch
|
||||||
{
|
{
|
||||||
|
private Logger log = LoggerFactory.getLogger( IndexJavaPublicMethodsCrossRepositorySearch.class );
|
||||||
|
|
||||||
private ManagedRepositoryConfiguration localIndexedRepo;
|
private ManagedRepositoryConfiguration localIndexedRepo;
|
||||||
|
|
||||||
private RepositoryContentIndexFactory indexFactory;
|
private RepositoryContentIndexFactory indexFactory;
|
||||||
|
@ -82,6 +86,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
}
|
}
|
||||||
catch ( ParseException e )
|
catch ( ParseException e )
|
||||||
{
|
{
|
||||||
|
log.error( e.getMessage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
return new SearchResults();
|
return new SearchResults();
|
||||||
|
@ -169,7 +174,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
}
|
}
|
||||||
catch ( java.text.ParseException e )
|
catch ( java.text.ParseException e )
|
||||||
{
|
{
|
||||||
|
log.error( e.getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,7 +182,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
}
|
}
|
||||||
catch ( IOException e )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
|
log.error( e.getMessage() );
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@ -190,7 +195,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
}
|
}
|
||||||
catch ( IOException ie )
|
catch ( IOException ie )
|
||||||
{
|
{
|
||||||
|
log.error( ie.getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +213,7 @@ public class IndexJavaPublicMethodsCrossRepositorySearch
|
||||||
}
|
}
|
||||||
catch ( RepositoryIndexSearchException e )
|
catch ( RepositoryIndexSearchException e )
|
||||||
{
|
{
|
||||||
|
log.error( e.getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return searchableList;
|
return searchableList;
|
||||||
|
|
Loading…
Reference in New Issue