Skip to content

Commit

Permalink
logs delete index
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Dec 6, 2023
1 parent 6e1bb63 commit afb8fc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ public boolean deleteMultiple(String...indexNames) {

List<String> indicesWithClusterPrefix = Arrays.stream(indexNames)
.map(this::getNameWithClusterIDPrefix).collect(Collectors.toList());
Logger.info(this.getClass(),"Deleting the following index: " + indicesWithClusterPrefix);

Logger.info(this.getClass(),"Calling DELETE Index from API. Index: " + indicesWithClusterPrefix);

try {
DeleteIndexRequest request = new DeleteIndexRequest(indicesWithClusterPrefix
.toArray(new String[0]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ public Response deleteIndex(@Context final HttpServletRequest request, @Context
@PathParam("indexName") final String indexName) throws DotDataException {

final InitDataObject init = auth(request, response);
Logger.info(this.getClass(),"Index DELETE Call via REST API. Index: " + indexName + " User: " + init.getUser());

if(indexExists(indexName) ){
return Response.status(404).build();
Expand Down

0 comments on commit afb8fc2

Please sign in to comment.