1

Is there a way to enable the verbose mode over requests library on python over config parameter using logging module?

Here is the example using config but to redirect to stderr.

    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

Example from the documentation

I know that there is a way to use the debug logging here but the idea is to use the new configuration provided.

Pablo Arias Mora
  • 389
  • 4
  • 11

0 Answers0