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

Fix filtering of log messages generated in native code. (cherrypick of #11313) #11316

Merged
merged 1 commit into from Dec 16, 2020

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Dec 16, 2020

Problem

Log messages generated in native code (including those generated by --files-not-found-behavior=warn) cannot be filtered using the Python warnings module, meaning that the --ignore-pants-warnings option does not currently work for them.

Solution

Move to a native implementation of warnings filtering, which allows for filtering out log messages generated by Rust as well as Python.

[ci skip-build-wheels]

…1313)

Log messages generated in native code (including those generated by `--files-not-found-behavior=warn`) cannot be filtered using the Python warnings module, meaning that the `--ignore-pants-warnings` option does not currently work for them.

Move to a native implementation of warnings filtering, which allows for filtering out log messages generated by Rust as well as Python.

[ci skip-build-wheels]
@stuhood stuhood merged commit 57b8d25 into pantsbuild:2.1.x Dec 16, 2020
@stuhood stuhood deleted the stuhood/pick-11313-for-2.1.x branch December 16, 2020 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants