Skip to content

Commit

Permalink
Fix log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
muralibasani committed Aug 6, 2024
1 parent ac83525 commit d8180d3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ private void ensureIndexOrDataStreamExists(final String index) {
if (config.dataStreamExistingIndexTemplateName().isPresent()) {
String userProvidedTemplate = config.dataStreamExistingIndexTemplateName().get();
if (!client.dataStreamIndexTemplateExists(userProvidedTemplate)) {
LOGGER.info("Create data stream and template {}", index);
LOGGER.info("Creating index template {} for data stream {}", userProvidedTemplate, index);
client.createIndexTemplateAndDataStream(userProvidedTemplate,
config.dataStreamTimestampField());
} else {
LOGGER.info("Do not create data stream and template {}", index);
LOGGER.info("Using existing index template {} for data stream {}", userProvidedTemplate,
index);
}
} else {
LOGGER.info("Create data stream {}", index);
Expand Down

0 comments on commit d8180d3

Please sign in to comment.