def show_me_the_logs():
    import httplib
    httplib.HTTPConnection.debuglevel = 1

    import logging
    # you need to initialize logging, otherwise you will not see
    # anything from requests
    logging.basicConfig()
    logging.getLogger().setLevel(logging.DEBUG)

    requests_log = logging.getLogger("requests.packages.urllib3")
    requests_log.setLevel(logging.DEBUG)
    requests_log.propagate = True
Turns on debug-level logging in requests
dataset/ETHPy150Open pyvideo/steve/steve/restapi.py/show_me_the_logs