Skip to content

Commit a8b8a9b

Browse files
committed
add log statements
1 parent 7a736d8 commit a8b8a9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ public void accept(String sinceRevision, Consumer<BoundaryChangesets.IdWithProgr
481481
ObjectId objId = repository.resolve(Constants.HEAD);
482482
if (Objects.isNull(objId)) {
483483
if (isRepositoryEmpty()) {
484+
LOGGER.log(Level.FINEST, "ignoring empty repository {}", this);
484485
return;
485486
}
486487
throw new HistoryException("cannot resolve HEAD");
@@ -522,6 +523,7 @@ public void traverseHistory(File file, String sinceRevision, String tillRevision
522523
RevWalk walk = new RevWalk(repository)) {
523524

524525
if (Objects.isNull(repository.resolve(Constants.HEAD)) && isRepositoryEmpty()) {
526+
LOGGER.log(Level.FINEST, "ignoring empty repository {}", this);
525527
return;
526528
}
527529

0 commit comments

Comments
 (0)