Skip to content

Commit b2ae2b8

Browse files
committed
log project in isReadyForHistoryBasedReindex()
1 parent 41d89d8 commit b2ae2b8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,19 +500,25 @@ private boolean isReadyForHistoryBasedReindex() {
500500

501501
// History needs to be enabled for the history cache to work (see the comment below).
502502
if (!project.isHistoryEnabled()) {
503-
LOGGER.log(Level.FINEST, "history is disabled, will be indexed by directory traversal.");
503+
LOGGER.log(Level.FINEST,
504+
"history is disabled for project {0}, will be indexed by directory traversal.",
505+
project);
504506
return false;
505507
}
506508

507509
// History cache is necessary to get the last indexed revision for given repository.
508510
if (!env.isHistoryCache()) {
509-
LOGGER.log(Level.FINEST, "history cache is disabled, will be indexed by directory traversal.");
511+
LOGGER.log(Level.FINEST,
512+
"history cache is disabled for project {0}, will be indexed by directory traversal.",
513+
project);
510514
return false;
511515
}
512516

513517
// Per project tunable can override the global tunable, therefore env.isHistoryBasedReindex() is not checked.
514518
if (!project.isHistoryBasedReindex()) {
515-
LOGGER.log(Level.FINEST, "history-based reindex is disabled, will be indexed by directory traversal.");
519+
LOGGER.log(Level.FINEST,
520+
"history-based reindex is disabled for project {0}, will be indexed by directory traversal.",
521+
project);
516522
return false;
517523
}
518524

0 commit comments

Comments
 (0)