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 #16149 to 7.x: Reduce use of global loggers in libbeat/common #16414

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

urso
Copy link

@urso urso commented Feb 19, 2020

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

  • Refactoring

What does this PR do?

Remove usage of logp.Debug/Warn by creating a logger instance in the GenericEventNormalizer. The Normalizer uses logp.New for now to keep the change less disruptive.

Why is it important?

Getting rid of global loggers functions.

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

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

* Reduce use of global loggers in libbeat/common

* review

(cherry picked from commit 3c78454)
@urso urso requested a review from a team February 19, 2020 14:06
@urso urso added the Team:Services (Deprecated) Label for the former Integrations-Services team label Feb 19, 2020
@urso urso merged commit 43d5db4 into elastic:7.x Feb 19, 2020
@urso urso deleted the backport_16149_7.x branch February 19, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants