Skip to content

Instantly share code, notes, and snippets.

@wbond
Created October 3, 2014 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbond/3530ae31747bc214b953 to your computer and use it in GitHub Desktop.
Save wbond/3530ae31747bc214b953 to your computer and use it in GitHub Desktop.
import logging
import http.client as http_client
http_client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment