Skip to content

How to disable logging #1195

Answered by abhinavsingh
q0w asked this question in Q&A
Jun 14, 2022 · 5 comments · 10 replies
Discussion options

You must be logged in to vote

@q0w You can remove super() call and it will automatically disable logging from the core, leaving only the print statements as the only logging statement for the instance. https://github.com/pypa/pip/pull/11091/files#diff-35c83feabce838957ec0526f0280604f479df39c03e56ca51b65ed34de098c81R22

However, it's unclear to me why a call to super() results in test failures, specially for windows/1 only runs. Does your test processes stdout/stderr for assertions? I looked at the runs but didn't see any specific error logs. I also see windows/2 passes. Wondering if windows/2 runs is also using proxy.py?

Please let me know if removing super() helps.

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@q0w
Comment options

@abhinavsingh
Comment options

@q0w
Comment options

@q0w
Comment options

@abhinavsingh
Comment options

Answer selected by abhinavsingh

This comment has been hidden.

This comment has been hidden.

This comment has been hidden.

This comment has been hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants