Skip to content

Commit eab79dc

Browse files
committed
improve log messages for changeset traversal
1 parent 897fb88 commit eab79dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/RepositoryWithHistoryTraversal.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected void doCreateCache(HistoryCache cache, String sinceRevision, File dire
143143
if (fileCollector != null) {
144144
visitors.add(fileCollector);
145145
}
146-
try (Progress progress = new Progress(LOGGER, String.format("history traversal of %s", this))) {
146+
try (Progress progress = new Progress(LOGGER, String.format(" changesets traversed of %s", this))) {
147147
ProgressVisitor progressVisitor = new ProgressVisitor(progress);
148148
visitors.add(progressVisitor);
149149
traverseHistory(directory, sinceRevision, null, null, visitors);
@@ -183,7 +183,8 @@ protected void doCreateCache(HistoryCache cache, String sinceRevision, File dire
183183
visitors.add(fileCollector);
184184
}
185185

186-
try (Progress progress = new Progress(LOGGER, String.format("history traversal of %s", this))) {
186+
try (Progress progress = new Progress(LOGGER,
187+
String.format(" changesets traversed of %s (range %s %s)", this, sinceRevision, tillRevision))) {
187188
ProgressVisitor progressVisitor = new ProgressVisitor(progress);
188189
visitors.add(progressVisitor);
189190
traverseHistory(directory, sinceRevision, tillRevision, null, visitors);

0 commit comments

Comments
 (0)