File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/org/opensolaris/opengrok/index Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -597,14 +597,15 @@ public void optimize() throws IOException {
597
597
IndexWriter wrt = null ;
598
598
IOException writerException = null ;
599
599
try {
600
- LOGGER .info ("Optimizing the index ... " );
600
+ String projectDetail = this .project != null ? " for project " + project .getName () : "" ;
601
+ LOGGER .log (Level .INFO , "Optimizing the index{0}" , projectDetail );
601
602
Analyzer analyzer = new StandardAnalyzer ();
602
603
IndexWriterConfig conf = new IndexWriterConfig (analyzer );
603
604
conf .setOpenMode (OpenMode .CREATE_OR_APPEND );
604
605
605
606
wrt = new IndexWriter (indexDirectory , conf );
606
607
wrt .forceMerge (1 ); // this is deprecated and not needed anymore
607
- LOGGER .info ( "done" );
608
+ LOGGER .log ( Level . INFO , "Done optimizing index{0}" , projectDetail );
608
609
synchronized (lock ) {
609
610
if (dirtyFile .exists () && !dirtyFile .delete ()) {
610
611
LOGGER .log (Level .FINE , "Failed to remove \" dirty-file\" : {0}" ,
You can’t perform that action at this time.
0 commit comments