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 <andrei.dan@elastic.co>
This commit is contained in:
Andrei Dan 2020-05-21 12:14:53 +01:00 committed by GitHub
parent eb8cb31d46
commit 9af31109fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -447,7 +447,7 @@ public class MetadataCreateIndexService {
final List<IndexTemplateMetadata> templates, final List<IndexTemplateMetadata> templates,
final BiConsumer<Metadata.Builder, IndexMetadata> metadataTransformer) final BiConsumer<Metadata.Builder, IndexMetadata> metadataTransformer)
throws Exception { 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())); templates.stream().map(IndexTemplateMetadata::name).collect(Collectors.toList()));
final Map<String, Map<String, Object>> mappings = Collections.unmodifiableMap(parseV1Mappings(request.mappings(), final Map<String, Map<String, Object>> mappings = Collections.unmodifiableMap(parseV1Mappings(request.mappings(),
@ -484,7 +484,7 @@ public class MetadataCreateIndexService {
final String templateName, final String templateName,
final BiConsumer<Metadata.Builder, IndexMetadata> metadataTransformer) final BiConsumer<Metadata.Builder, IndexMetadata> metadataTransformer)
throws Exception { 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; final String sourceMappings;
if (request.mappings().size() > 0) { if (request.mappings().size() > 0) {