Skip to content

fix(vcr): suppress vcr/urllib3 debug logging during cassette replay#92

Merged
matyas-jirat-keboola merged 2 commits intomainfrom
fix/vcr-replay-suppress-debug-logging
Mar 5, 2026
Merged

fix(vcr): suppress vcr/urllib3 debug logging during cassette replay#92
matyas-jirat-keboola merged 2 commits intomainfrom
fix/vcr-replay-suppress-debug-logging

Conversation

@matyas-jirat-keboola
Copy link
Contributor

Summary

  • _execute_with_vcr_replay() was not suppressing vcr and urllib3 loggers, causing one DEBUG line per cassette interaction to flood stdout during local debug runs (e.g. ~995 lines for a typical Facebook Pages job)
  • record_debug_run() already suppresses these loggers at WARNING — this brings replay in line with the same behaviour

Test plan

  • Run component locally with a data/cassettes/requests.json present — stdout should only show component-level INFO/WARNING/ERROR, no vcrpy Appending request... lines

🤖 Generated with Claude Code

matyas-jirat-keboola and others added 2 commits March 5, 2026 20:55
record_debug_run() already suppresses these loggers at WARNING level,
but _execute_with_vcr_replay() did not — causing ~1 DEBUG line per
cassette interaction to flood stdout during local debug runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eplay

Remove redundant local `import logging` — already imported at module top.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@matyas-jirat-keboola
Copy link
Contributor Author

Applied to feature/vcr-auto-recording instead.

Copy link
Contributor

@soustruh soustruh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙃

@matyas-jirat-keboola matyas-jirat-keboola merged commit 4e70031 into main Mar 5, 2026
4 checks passed
@matyas-jirat-keboola matyas-jirat-keboola deleted the fix/vcr-replay-suppress-debug-logging branch March 5, 2026 20:13
@matyas-jirat-keboola matyas-jirat-keboola restored the fix/vcr-replay-suppress-debug-logging branch March 5, 2026 20:13
@matyas-jirat-keboola matyas-jirat-keboola deleted the fix/vcr-replay-suppress-debug-logging branch March 5, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants