utils.py
This file
The walk stopped after 200 commits: lines older than 645ae4e point at it.
Explain SSL_CERT_DIR specific format (#1470)Quentin Pradetbefore adoption645ae4e
lines 1–20why, one step back1import contextlib2import logging3import os45from httpx import _utils678@contextlib.contextmanager9def override_log_level(log_level: str):10 os.environ["HTTPX_LOG_LEVEL"] = log_level1112 # Force a reload on the logging handlers13 _utils._LOGGER_INITIALIZED = False14 _utils.get_logger("httpx")1516 try:17 yield18 finally:19 # Reset the logger so we don't have verbose output in all unit tests20 logging.getLogger("httpx").handlers = []