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:
parent
eb8cb31d46
commit
9af31109fa
|
@ -447,7 +447,7 @@ public class MetadataCreateIndexService {
|
|||
final List<IndexTemplateMetadata> templates,
|
||||
final BiConsumer<Metadata.Builder, IndexMetadata> 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<String, Map<String, Object>> mappings = Collections.unmodifiableMap(parseV1Mappings(request.mappings(),
|
||||
|
@ -484,7 +484,7 @@ public class MetadataCreateIndexService {
|
|||
final String templateName,
|
||||
final BiConsumer<Metadata.Builder, IndexMetadata> 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) {
|
||||
|
|
Loading…
Reference in New Issue