add log info on maven repository indexing

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-01-19 10:09:21 +00:00
parent 839d3e0028
commit cd7744eb28
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ import javax.annotation.PostConstruct;
import javax.inject.Inject;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
/**
* ArchivaIndexingTaskExecutor Executes all indexing tasks. Adding, updating and removing artifacts from the index are
@ -104,7 +105,12 @@ public class ArchivaIndexingTaskExecutor
{
try
{
long start = System.currentTimeMillis();
nexusIndexer.scan( context, null, indexingTask.isOnlyUpdate() );
long end = System.currentTimeMillis();
log.info( "indexed maven repository: {}, onlyUpdate: {}, time {} ms",
Arrays.asList( repository.getId(), indexingTask.isOnlyUpdate(), ( end - start ) ).toArray(
new Object[3] ) );
}
catch ( IOException e )
{