Skip to content

Commit 57509b9

Browse files
Vladimir Kotalahornace
authored andcommitted
report index time of files with Level.FINEST
1 parent eb6a09c commit 57509b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,7 @@ private void indexParallel(String dir, IndexDownArgs args) {
12451245
int tries = 0;
12461246
Ctags pctags = null;
12471247
boolean ret;
1248+
Statistics stats = new Statistics();
12481249
while (true) {
12491250
try {
12501251
if (alreadyClosedCounter.get() > 0) {
@@ -1284,6 +1285,8 @@ private void indexParallel(String dir, IndexDownArgs args) {
12841285
}
12851286

12861287
progress.increment();
1288+
stats.report(LOGGER, Level.FINEST,
1289+
String.format("file ''%s'' %s", x.file, ret ? "indexed" : "failed indexing"));
12871290
return ret;
12881291
}
12891292
}))).get();

0 commit comments

Comments
 (0)