[Python] log all http requests in python

Discussão em 'Python' iniciado por Stack, Julho 28, 2025.

  1. Stack

    Stack Membro Participativo

    from dodgygithubproject import *
    import requests


    I wish to log the connection info (user agent/header etc) for every request made by dodgygithubproject.

    Is that a job for contextmanager? How can I be sure that every connection gets logged in the sub-classes etc?

    Continue reading...

Compartilhe esta Página