Repository navigation
feat: add debug mode - #27
Conversation
|
Thanks for the PR! The debug mode itself is well thought out - credentials, cookies, proxy data and base64 payloads are masked, How to handle this review: each item has an ID. Please reply to every item with the commit that fixes it (or explain why it's not needed). Request re-review once all required (R) items are addressed. RequiredR1. Debug mode only in dedicated The original request was a dedicated example that demonstrates debug mode, with a name that makes this obvious. The
The same commits also rewrite docstrings and STEP comments across all examples ( R2. Debug mode takes over the logger - With
Suggest leaving Optional (nit)N1. Hardcoded This duplicates N2. Redundant
N3.
NoteThis PR conflicts with #26 (Kaleidoscope) in |
fcec35a to
23e9c9e
Compare
|
Addressed the review in commit f63dc2c:\n\n- R1: restored regular sync/async examples to main while preserving the API-key placeholder cleanup, removed examples/_cli.py, enabled debug=True directly in the sync example, added examples/async/debug_mode.py, and updated both READMEs to link to the dedicated examples.\n- R2: stopped changing propagate, only installs the fallback handler when root logging has no handlers, allows standard logging to enable SDK events, and added coverage for configured root handlers and flag-free logging.\n- N1: introduced shared HTTP_TIMEOUT_SECONDS and use it for requests and initialization logs.\n- N2: kept the pre-raise cause assignments and documented why they are needed before the debug event is emitted.\n- N3: renamed the logger attribute to _debug_log.\n\nValidation: python -m ruff check ., python -m pytest -q -p no:cacheprovider (137 passed), python -m build, and python -m twine check --strict dist/* all pass.\n\n@dzmitry-duboyski Please re-review when you have a chance. |
|
Follow-up audit: commit 5093e18 updates the R2 coverage to use the exact package logger from the review ( |
5093e18 to
252a6e1
Compare
|
Rebased PR #27 onto |
Summary
Validation
python -m pytest -q— 133 passedpython -m ruff check captcha_solver_api tests examplespython -m mypy --no-site-packages --ignore-missing-imports captcha_solver_apipython -m build --no-isolationpython -m twine check --strict dist/*python -m compileall -q captcha_solver_api examplesgit diff --checkNo integration test that creates a paid CAPTCHA task was run.