projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9cdf1
)
Verbose logging example does not work
author
Devin Sevilla
<dasevilla@gmail.com>
Thu, 10 Nov 2011 23:34:18 +0000
(15:34 -0800)
committer
Devin Sevilla
<dasevilla@gmail.com>
Thu, 10 Nov 2011 23:34:18 +0000
(15:34 -0800)
docs/user/advanced.rst
patch
|
blob
|
history
diff --git
a/docs/user/advanced.rst
b/docs/user/advanced.rst
index 34c934a392d1e6462284e2111bd390c9527f0700..9083b430d94665bd2fa23c118f3081c7a2c9af0d 100644
(file)
--- a/
docs/user/advanced.rst
+++ b/
docs/user/advanced.rst
@@
-227,7
+227,7
@@
by your application, you can turn on verbose logging.
To do so, just configure Requests with a stream to write to::
- >>>
requests.settings.verbose = sys.stderr
- >>> requests.get('http://httpbin.org/headers')
+ >>>
my_config = {'verbose': sys.stderr}
+ >>> requests.get('http://httpbin.org/headers'
, config=my_config
)
2011-08-17T03:04:23.380175 GET http://httpbin.org/headers
<Response [200]>