-
-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review logging. #2042
Comments
Also, it might be neat if this was also exposed in the command line client. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've just bumped into this.. Have been trying to debug a strange issue with a difference in behaviour between httpx 0.20 and 0.21 involving a request hanging indefinitely, but after following the documentation found that I was hardly getting any output in the logs. httpx 0.20
httpx 0.22
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This seems us really worth putting a bit of time into. I think this would be a comprehensive logging output for
There's all sorts of things we could include at the I don't think we really need a custom Also, why are setting up a custom formatter at the moment? Could we avoid that and just rely on Python's default setup? |
Actually, for Everything that the We could either expose that using So either this kind of thing...
Or this...
|
Prompted by #2036
Since the significant
httpcore
redesign we've not got our trace logging anymore. I don't think we had a super consistent approach to what did or didn't go in there, so I'd like to review ourtrace
,debug
, andinfo
level logging.Originally posted by jashandeep-sohi January 18, 2022
Per the docs, https://www.python-httpx.org/environment_variables/, I should be able to set set
HTTPX_LOG_LEVEL=trace
and it should log detailed information about HTTP requests.However this does not work (at least for the latest version
0.21.3
). After a little digging, it looks like the only place thetrace
extension is actually hooked into is the CLI client:httpx/httpx/_main.py
Line 479 in 83c81aa
Is this a bug or are the docs wrong?
The text was updated successfully, but these errors were encountered: