From 86fa46bd69fc16cc6c99e15e6a9d7a6dcc6bdd5b Mon Sep 17 00:00:00 2001 From: nikkie Date: Tue, 24 Jun 2025 23:42:48 +0900 Subject: [PATCH] [docs] Remove load_ssl_context & load_verify_locations DEBUG log HTTPX 0.28.0 and later have removed DEBUG logs * before: https://github.com/encode/httpx/blob/0.27.2/httpx/_config.py#L82-L88 * after: https://github.com/encode/httpx/blob/0.28.0/httpx/_config.py --- docs/logging.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/logging.md b/docs/logging.md index 90c21e2563..b3c5781727 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -20,8 +20,6 @@ httpx.get("https://www.example.com") Will send debug level output to the console, or wherever `stdout` is directed too... ``` -DEBUG [2024-09-28 17:27:40] httpx - load_ssl_context verify=True cert=None -DEBUG [2024-09-28 17:27:40] httpx - load_verify_locations cafile='/Users/karenpetrosyan/oss/karhttpx/.venv/lib/python3.9/site-packages/certifi/cacert.pem' DEBUG [2024-09-28 17:27:40] httpcore.connection - connect_tcp.started host='www.example.com' port=443 local_address=None timeout=5.0 socket_options=None DEBUG [2024-09-28 17:27:41] httpcore.connection - connect_tcp.complete return_value= DEBUG [2024-09-28 17:27:41] httpcore.connection - start_tls.started ssl_context=SSLContext(verify=True) server_hostname='www.example.com' timeout=5.0 @@ -80,4 +78,4 @@ logging.config.dictConfig(LOGGING_CONFIG) httpx.get('https://www.example.com') ``` -The exact formatting of the debug logging may be subject to change across different versions of `httpx` and `httpcore`. If you need to rely on a particular format it is recommended that you pin installation of these packages to fixed versions. \ No newline at end of file +The exact formatting of the debug logging may be subject to change across different versions of `httpx` and `httpcore`. If you need to rely on a particular format it is recommended that you pin installation of these packages to fixed versions.