Skip to content
Myr

Verbose logging example does not work

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

authored by Devin Sevilla · committed by Devin Sevilla · parent ae9cdf1 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/advanced.rst+2 added-2 removed
225 unmodified lines
226by your application, you can turn on verbose logging.227228To do so, just configure Requests with a stream to write to::229230 >>> requests.settings.verbose = sys.stderr231 >>> requests.get('http://httpbin.org/headers')230 >>> my_config = {'verbose': sys.stderr}231 >>> requests.get('http://httpbin.org/headers', config=my_config)232 2011-08-17T03:04:23.380175 GET http://httpbin.org/headers233 <Response [200]>