Convert print statements to logging statements
Please answer these questions before submitting your pull requests. Thanks!
-
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #1892
-
Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness of my new code
- [x] I am adding new logging messages
- [ ] I am adding a new telemetry message
- [ ] I am modifying authorization mechanisms
- [ ] I am adding new credentials
- [ ] I am modifying OCSP code
- [ ] I am adding a new dependency
-
Please describe how your code solves the related issue.
The use of
printbreaks piping outputs, as the output is contaminated with the message when usingexteranlbrowswerauthentication. Moving these messages into logging allows for pipelining, and also elevating the the failure mode to a more suitable level of urgency.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
recheck
@invisiblethreat could you fix the unit tests too and use logging.caplog to match what the old test was testing
@sfc-gh-aalam Had some issues getting tests to run as expected locally, but built out some toy scripts to assess the functionality of caplog and the resulting changes should restore tests. 🤞