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

Postpone selection of the logger output #17448

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

urso
Copy link

@urso urso commented Apr 2, 2020

  • Bug

What does this PR do?

Postpone the selection of the log output after configuration file has been read and CLI flags have been assigned.

Why is it important?

Fix regression found during 7.7.0 testing. The configured log output is not respected and can not be overwritten. This change ensures that CLI flags and configuration files are always respected.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@urso urso added bug libbeat v7.7.0 Team:Services (Deprecated) Label for the former Integrations-Services team labels Apr 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@urso urso requested a review from andrewkroh April 2, 2020 17:10
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Appears that it will honor what logging.to_X option that is set in the config file, and otherwise fallback to the environment setting default. And the default config files do not set any logging.to_X options so that's good.

@urso urso merged commit d6c2aac into elastic:master Apr 2, 2020
urso pushed a commit that referenced this pull request Apr 3, 2020
urso pushed a commit that referenced this pull request Apr 3, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug libbeat Team:Services (Deprecated) Label for the former Integrations-Services team v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants