Skip to content

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

Merged
kaiyan-sheng merged 6 commits intoelastic:masterfrom
kaiyan-sheng:logp-cloud
Mar 2, 2020
Merged

[Libbeat] Use *logp.Logger in libbeat processors#16654
kaiyan-sheng merged 6 commits intoelastic:masterfrom
kaiyan-sheng:logp-cloud

Conversation

@kaiyan-sheng
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor Author

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

kaiyan-sheng pushed 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