From 9af31109fa931c06c52a922bede1ae2de82f338d Mon Sep 17 00:00:00 2001 From: Andrei Dan Date: Thu, 21 May 2020 12:14:53 +0100 Subject: [PATCH] Change "apply create index" log level to DEBUG (#56947) (#57028) These log statements are also logged by every "simulate adding this index" functionality. One of them is the rollover action in ILM which executes rollover dry-runs until the conditions are met, when the actual rollover is executed. This changes the statements log level to DEBUG and changes the phrasing from V1/V2 to legacy/composable templates. (cherry picked from commit 7cc8e1fe7f9731213ac4869fe99853564fbaaba9) Signed-off-by: Andrei Dan --- .../cluster/metadata/MetadataCreateIndexService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java b/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java index fb025c3e55f..5c4d9aa9bdb 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java @@ -447,7 +447,7 @@ public class MetadataCreateIndexService { final List templates, final BiConsumer metadataTransformer) throws Exception { - logger.info("applying create index request using v1 templates {}", + logger.debug("applying create index request using legacy templates {}", templates.stream().map(IndexTemplateMetadata::name).collect(Collectors.toList())); final Map> mappings = Collections.unmodifiableMap(parseV1Mappings(request.mappings(), @@ -484,7 +484,7 @@ public class MetadataCreateIndexService { final String templateName, final BiConsumer metadataTransformer) throws Exception { - logger.info("applying create index request using v2 template [{}]", templateName); + logger.debug("applying create index request using composable template [{}]", templateName); final String sourceMappings; if (request.mappings().size() > 0) {