@@ -352,11 +352,11 @@ private int getFileCount(File sourceRoot, String dir) throws IOException {
352
352
IndexDownArgs args = new IndexDownArgs ();
353
353
args .count_only = true ;
354
354
355
+ Statistics elapsed = new Statistics ();
355
356
LOGGER .log (Level .INFO , "Counting files in {0} ..." , dir );
356
357
indexDown (sourceRoot , dir , args );
357
- LOGGER .log (Level .INFO ,
358
- "Need to process: {0} files for {1}" ,
359
- new Object []{args .cur_count , dir });
358
+ elapsed .report (LOGGER , String .format ("Need to process: %d files for %s" ,
359
+ args .cur_count , dir ));
360
360
}
361
361
362
362
return file_cnt ;
@@ -495,10 +495,16 @@ public void update(IndexerParallelizer parallelizer)
495
495
args .est_total = getFileCount (sourceRoot , dir );
496
496
497
497
args .cur_count = 0 ;
498
+ Statistics elapsed = new Statistics ();
499
+ LOGGER .log (Level .INFO , "Starting traversal of directory {0}" , dir );
498
500
indexDown (sourceRoot , dir , args );
501
+ elapsed .report (LOGGER , String .format ("Done traversal of directory %s" , dir ));
499
502
500
503
args .cur_count = 0 ;
504
+ elapsed = new Statistics ();
505
+ LOGGER .log (Level .INFO , "Starting indexing of directory {0}" , dir );
501
506
indexParallel (args );
507
+ elapsed .report (LOGGER , String .format ("Done indexing of directory %s" , dir ));
502
508
503
509
// Remove data for the trailing terms that indexDown()
504
510
// did not traverse. These correspond to files that have been
0 commit comments