From 38f97a3b49dc0a00cb117b7b60a45c5e24c9d195 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Mon, 3 Mar 2025 11:20:44 -0500 Subject: [PATCH] PYTHON-5177 - Add instructions for enabling debug logs to CONTRIBUTING.md (#2170) --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4b1d13968..d22874faf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -224,6 +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. +## 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