Skip to content

Commit 63b0eeb

Browse files
author
Vladimir Kotal
committed
log the project
1 parent 2b89216 commit 63b0eeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/org/opensolaris/opengrok/index/IndexDatabase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,15 @@ public void optimize() throws IOException {
597597
IndexWriter wrt = null;
598598
IOException writerException = null;
599599
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);
601602
Analyzer analyzer = new StandardAnalyzer();
602603
IndexWriterConfig conf = new IndexWriterConfig(analyzer);
603604
conf.setOpenMode(OpenMode.CREATE_OR_APPEND);
604605

605606
wrt = new IndexWriter(indexDirectory, conf);
606607
wrt.forceMerge(1); // this is deprecated and not needed anymore
607-
LOGGER.info("done");
608+
LOGGER.log(Level.INFO, "Done optimizing index{0}", projectDetail);
608609
synchronized (lock) {
609610
if (dirtyFile.exists() && !dirtyFile.delete()) {
610611
LOGGER.log(Level.FINE, "Failed to remove \"dirty-file\": {0}",

0 commit comments

Comments
 (0)