Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #203: pass meta to get statusCode when ensuring index template and… #235

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lenchv
Copy link

@lenchv lenchv commented Sep 13, 2023

  1. Pass { meta: true } when checking index template, because of changed ES SDK API
  2. Added a flag to synchronize creation index template with writing logs:
    The issue is when logger is initialized it runs synchronously asynchronous method "start"
    Then app logger starts writing logs
    First time method append runs "tick" without interval
    As a result writing to ES goes first than creation of template, and template is not taken into account when index is created

The flag connected waits until start finishes connection and only than allows to write logs

@vanthome

fix #203

@lenchv lenchv changed the title fix 203: pass meta to get statusCode when ensuring index template and… fix #203: pass meta to get statusCode when ensuring index template and… Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ensureIndexTemplate and indexTemplate not working
2 participants