Skip to content

Commit 9e27fc8

Browse files
author
Vladimir Kotal
committed
do not use Statistics in showFileCount()
1 parent 77c959e commit 9e27fc8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,9 @@ public boolean addDirectory(String dir) {
344344
return false;
345345
}
346346

347-
private void showFileCount(
348-
String dir, IndexDownArgs args, Statistics elapsed) {
347+
private void showFileCount(String dir, IndexDownArgs args) {
349348
if (RuntimeEnvironment.getInstance().isPrintProgress()) {
350-
elapsed.report(LOGGER, String.format("Need to process: %d files for %s",
349+
LOGGER.log(Level.INFO, String.format("Need to process: %d files for %s",
351350
args.cur_count, dir));
352351
}
353352
}
@@ -485,7 +484,7 @@ public void update() throws IOException {
485484
indexDown(sourceRoot, dir, args);
486485
elapsed.report(LOGGER, String.format("Done traversal of directory %s", dir));
487486

488-
showFileCount(dir, args, elapsed);
487+
showFileCount(dir, args);
489488

490489
args.cur_count = 0;
491490
elapsed = new Statistics();

0 commit comments

Comments
 (0)