from somedodgygithubproject import *
import requests
I wish to log the connection info (user agent/header etc) for every request made by somedodgygithubproject.
Is that a job for contextmanager? How can I be sure that every connection gets logged in the sub-classes etc?
Thanks