From: Devin Sevilla Date: Thu, 10 Nov 2011 23:34:18 +0000 (-0800) Subject: Verbose logging example does not work X-Git-Tag: v0.8.0~37^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d8440ea98301131edd537c4f2010b749f005e3b;p=services%2Fpython-requests.git Verbose logging example does not work --- diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index 34c934a..9083b43 100644 --- 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