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

[Libbeat] Use *logp.Logger in libbeat processors #16654

Merged
merged 6 commits into from
Mar 2, 2020
Merged

[Libbeat] Use *logp.Logger in libbeat processors #16654

merged 6 commits into from
Mar 2, 2020

Conversation

kaiyan-sheng
Copy link
Contributor

What does this PR do?

This PR is to improve logging in libbeat processors by add *logp.Logger in structures, replace logp.Debug/Info/Warn/... with f variants and remove debug parameters.

Please see #15699 for more details.

@urso
Copy link

urso commented Feb 27, 2020

Thanks for the help!

I think the build is broken because of this vet: processors/actions/copy_fields_test.go:133:4: too few values in struct literal.

@kaiyan-sheng
Copy link
Contributor Author

Thanks for the help!

I think the build is broken because of this vet: processors/actions/copy_fields_test.go:133:4: too few values in struct literal.

Yep! Thanks! I think I fixed several unit tests (not sure if I'm still missing any, CI will tell 😬).

@kaiyan-sheng kaiyan-sheng merged commit 755227d into elastic:master Mar 2, 2020
@kaiyan-sheng kaiyan-sheng deleted the logp-cloud branch March 2, 2020 04:33
@kaiyan-sheng kaiyan-sheng added v7.7.0 and removed needs_backport PR is waiting to be backported to other branches. labels Mar 2, 2020
@kaiyan-sheng
Copy link
Contributor Author

CI failure is caused by #16718, not related to this PR.

kaiyan-sheng added a commit that referenced this pull request Mar 3, 2020
* Use *logp.Logger in libbeat processors

(cherry picked from commit 755227d)
@andresrc andresrc added Team:Integrations Label for the Integrations team and removed [zube]: Done labels Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants