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

Cherry-pick #15708 to 7.x: Fix issue where default go logger is not discarded when either * or stdout is selected. #15880

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

blakerouse
Copy link
Contributor

Cherry-pick of PR #15708 to 7.x branch. Original message:

What does this PR do?

Fix issue where default go logger is not discarded when either * or stdout is selected.

Why is it important?

Prevents other imported modules from outputting log messages.

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

Related issues

…tdout is selected. (elastic#15707)

* Disable default logger when stdlog or the default all selector is not enabled.

* Fix issue where default go logger is not discarded when either * or stdout is selected. Fix elastic#10251.

* Change logic to always discard unless in debug and when all or stdlog is selected. Add more tests.

* Fix comments.

* Add changelog entry.

(cherry picked from commit 1838734)
@blakerouse blakerouse merged commit b5c4b95 into elastic:7.x Jan 28, 2020
@blakerouse blakerouse deleted the backport_15708_7.x branch January 28, 2020 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants