Skip to content
Commit 865e4214 authored by snylonue's avatar snylonue
Browse files

fix log formatting

Logs from httpx's `_send_single_request` is not formatted correctly,
resulting logs like 'HTTP Request: %s %s "%s %d %s"'.
This makes debugging network-related issues harder (e.g. a mistyped
3rd party openai api url).
Fixes it by assessing log message via `LogRecord.getMessage()`.
see also: https://docs.python.org/3.10/library/logging.html#logging.LogRecord.getMessage
parent 6fda20fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment