Skip to content

Commit

Permalink
Merge pull request #180 from jamebal/develop
Browse files Browse the repository at this point in the history
test: 添加索引进度日志
  • Loading branch information
jamebal authored Nov 28, 2024
2 parents 2015931 + 5fa0f87 commit 02a6b6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public void run() {
public void rebuildingIndexCompleted() {
if (!hasUnIndexedTasks() && NOT_INDEX_TASK_SIZE.get() > 0) {
setPercentMap(100d, 100d);
log.debug("重建索引完成, INDEXED_TASK_SIZE, {}, NOT_INDEX_TASK_SIZE: {}", INDEXED_TASK_SIZE, NOT_INDEX_TASK_SIZE);
log.info("重建索引完成, INDEXED_TASK_SIZE, {}, NOT_INDEX_TASK_SIZE: {}", INDEXED_TASK_SIZE, NOT_INDEX_TASK_SIZE);
restIndexedTasks();
pushMessage();
}
Expand Down Expand Up @@ -466,7 +466,7 @@ private void setPercentMap(Double syncPercent, Double indexingPercent) {

private void pushMessage() {
commonFileService.pushMessage(getRecipient(null), PERCENT_MAP, RebuildIndexTaskService.MSG_SYNCED);
log.debug("推送消息: {}, isSyncFile: {}, INDEXED_TASK_SIZE, {}, NOT_INDEX_TASK_SIZE: {}", PERCENT_MAP, isSyncFile(), INDEXED_TASK_SIZE.get(), NOT_INDEX_TASK_SIZE.get());
log.info("索引进度: {}, isSyncFile: {}, INDEXED_TASK_SIZE, {}, NOT_INDEX_TASK_SIZE: {}", PERCENT_MAP, isSyncFile(), INDEXED_TASK_SIZE.get(), NOT_INDEX_TASK_SIZE.get());
}

private class FileCountVisitor extends SimpleFileVisitor<Path> {
Expand Down

0 comments on commit 02a6b6c

Please sign in to comment.