Skip to content

Commit

Permalink
Add log messages when index creation is skipped for the filter
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Dec 2, 2024
1 parent 8bc40a0 commit 1ed07a8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public IndexMetadataResults migrateIndices(MigrationMode mode, ICreateIndexConte
.forEach(index -> {
CreationResult creationResult;
if (skipCreation.test(index.getName())) {
log.atInfo()
.setMessage("Index {} was not part of the allow list and will not be migrated.")
.addArgument(index.getName())
.log();
creationResult = CreationResult.builder()
.name(index.getName())
.failureType(CreationFailureType.SKIPPED_DUE_TO_FILTER)
Expand Down

0 comments on commit 1ed07a8

Please sign in to comment.