diff --git a/gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/AbstractLegacyTextSearchGsrsEntityController.java b/gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/AbstractLegacyTextSearchGsrsEntityController.java index 3a804075..9f4ed267 100644 --- a/gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/AbstractLegacyTextSearchGsrsEntityController.java +++ b/gsrs-spring-boot-autoconfigure/src/main/java/gsrs/controller/AbstractLegacyTextSearchGsrsEntityController.java @@ -625,21 +625,17 @@ class DiffJsonOutput{ @PostGsrsRestApiMapping(value = "/@databaseIndexSync", apiVersions = 1) public ResponseEntity syncIndexesWithDatabase() throws JsonMappingException, JsonProcessingException{ - - log.error("in syncIndexesWithDatabase"); - + List keysInDatabase = getKeys(); List keysInIndex = searchEntityInIndex(); Set extraInDatabase = Sets.difference(new HashSet(keysInDatabase), new HashSet(keysInIndex)); if(extraInDatabase.isEmpty()) { - log.error("in syncIndexesWithDatabase: Database and index sync: No different items."); ObjectNode resultNode = JsonNodeFactory.instance.objectNode(); resultNode.put("message", "The entity index is in sync with the database. No reindexing needed."); return new ResponseEntity<>(resultNode, HttpStatus.OK); }else { List list = extraInDatabase.stream().map(format->format.getIdString()).collect(Collectors.toList()); - log.error("in syncIndexesWithDatabase: Database and index sync: found " + list.size() + " different items."); return new ResponseEntity<>(bulkReindexListOfIDs(list, false), HttpStatus.OK); } }