Skip to content
Myr

set logging request lines to INFO level for async method also (#2656)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Piotr Staroszczyk · committed by GitHub · parent 579a3f2 · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:httpx/_client.py+7 added-4 removed
1724 unmodified lines
1725 )1726 self.cookies.extract_cookies(response)1727 response.default_encoding = self._default_encoding17281729 status = f"{response.status_code} {response.reason_phrase}"1730 response_line = f"{response.http_version} {status}"1731 logger.debug(1732 'HTTP Request: %s %s "%s"', request.method, request.url, response_line1729 logger.info(1730 'HTTP Request: %s %s "%s %d %s"',1731 request.method,1732 request.url,1733 response.http_version,1734 response.status_code,1735 response.reason_phrase,1736 )17371738 return response1739
267 unmodified lines