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

Simplify PEX teardown / leave stderr in tact. #1813

Merged
merged 3 commits into from Jun 20, 2022

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jun 19, 2022

For historical reasons that are no longer relevant, PEX accrued
complicated teardown code that, among other things, replaced
sys.stderr with /dev/null. This could lead to lost messages to
stderr. Simply remove the complicated and no-longer useful code.

Fixes #1802

For historical reasons that are no longer relevant, `PEX` accrued
complicated teardown code that, among other things, replaced
`sys.stderr` with `/dev/null`. This could lead to lost messages to
stderr. Simply remove the complicated and no-longer useful code.

Fixes pex-tool#1802
pex/variables.py Outdated
@@ -235,6 +235,11 @@ def __init__(self, environ=None, rc=None):
"The `PEX_UNZIP` env var is deprecated. This env var is no longer read since "
"unzipping PEX zip files before execution is now the default."
)
if "PEX_TEARDOWN_VERBOSE" in self._environ:
pex_warnings.warn(
# TODO(John Sirois): XXX
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. Fixed.

@jsirois jsirois merged commit 416691c into pex-tool:main Jun 20, 2022
@jsirois jsirois deleted the issues/1802 branch June 20, 2022 05:25
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.

zipapp mode drops tail log lines
2 participants