diff --git a/src/main/java/com/jmal/clouddisk/service/impl/LuceneService.java b/src/main/java/com/jmal/clouddisk/service/impl/LuceneService.java index b7911e5c..66df7443 100644 --- a/src/main/java/com/jmal/clouddisk/service/impl/LuceneService.java +++ b/src/main/java/com/jmal/clouddisk/service/impl/LuceneService.java @@ -136,7 +136,7 @@ private void createIndexFiles(List fileIdList) throws IOException { String content = readFileContent(file); updateIndexDocument(indexWriter, fileIndex, content); if (StrUtil.isNotBlank(content)) { - log.info("添加索引, filepath: {}, fileId: {}", file.getAbsoluteFile(), fileIntroVO.getId()); + log.info("添加索引, filepath: {}", file.getAbsoluteFile()); } } indexWriter.commit(); diff --git a/src/main/java/com/jmal/clouddisk/service/impl/SettingService.java b/src/main/java/com/jmal/clouddisk/service/impl/SettingService.java index d7721155..c60fd2f5 100644 --- a/src/main/java/com/jmal/clouddisk/service/impl/SettingService.java +++ b/src/main/java/com/jmal/clouddisk/service/impl/SettingService.java @@ -122,7 +122,7 @@ public ResponseResult sync(String username) { Files.walkFileTree(path, fileVisitOptions, Integer.MAX_VALUE, syncFileVisitor); TimeUnit.MINUTES.sleep(1); // 删除有删除标记的doc - //commonFileService.deleteDocByDeleteFlag(username); + commonFileService.deleteDocByDeleteFlag(username); } catch (IOException e) { log.error("{}{}", e.getMessage(), path, e); } catch (InterruptedException e) {