From 31fda0e6e0e81c8aa5f558cadbe5fb9fa4e8fc5c Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 3 Mar 2025 09:25:58 -0500 Subject: [PATCH 1/2] PYTHON-5177 - Add instructions for enabling debug logs to CONTRIBUTING.md --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4b1d139684..51ae3e540d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -224,6 +224,11 @@ the pages will re-render and the browser will automatically refresh. - Run the tests with `just run-tests`. - When done, run `just teardown-tests` to clean up. +## Enabling Debug Logs +- Use `-o log_cli_level="DEBUG" -o log_cli=1` with `just test` or `pytest`. +- Add `log_cli_level = "DEBUG` and `log_cli = 1` to the `tool.pytest.ini_options` section in `pyproject.toml` for Evergreen patches or to enable debug logs by default on your machine. + + ## Re-sync Spec Tests If you would like to re-sync the copy of the specification tests in the From 5c3a799cced4b15284b07a8882f3f716ae795ca2 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 3 Mar 2025 09:26:26 -0500 Subject: [PATCH 2/2] Whitespace --- CONTRIBUTING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 51ae3e540d..d22874faf8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -224,11 +224,10 @@ the pages will re-render and the browser will automatically refresh. - Run the tests with `just run-tests`. - When done, run `just teardown-tests` to clean up. -## Enabling Debug Logs +## Enable Debug Logs - Use `-o log_cli_level="DEBUG" -o log_cli=1` with `just test` or `pytest`. - Add `log_cli_level = "DEBUG` and `log_cli = 1` to the `tool.pytest.ini_options` section in `pyproject.toml` for Evergreen patches or to enable debug logs by default on your machine. - ## Re-sync Spec Tests If you would like to re-sync the copy of the specification tests in the