Skip to content

Commit 8d0808f

Browse files
committed
chore: set vcr log level to warning
Configure VCR logger to WARNING as it is too verbose by default specifically, it logs every request and response including binary content in Cassette.append, which is causing log downloads from GitHub action to fail.
1 parent 20bd1d5 commit 8d0808f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import asyncio
44
import importlib.util
5+
import logging
56
import os
67
import re
78
import secrets
@@ -26,6 +27,11 @@
2627

2728
__all__ = 'IsDatetime', 'IsFloat', 'IsNow', 'IsStr', 'IsInt', 'IsInstance', 'TestEnv', 'ClientWithHandler', 'try_import'
2829

30+
# Configure VCR logger to WARNING as it is too verbose by default
31+
# specifically, it logs every request and response including binary
32+
# content in Cassette.append, which is causing log downloads from
33+
# GitHub action to fail.
34+
logging.getLogger('vcr.cassette').setLevel(logging.WARNING)
2935

3036
pydantic_ai.models.ALLOW_MODEL_REQUESTS = False
3137

0 commit comments

Comments
 (0)