Someone brought up that EDMC plugins might be using the default requests User Agent string, which isn't helpful when trying to determine what is causing traffic.
There's already timeout_session.py to quickly get a requests session object with a timeout set, and it uses config.user_agent.
Ideally all plugins would not only use that, rather than requests session creation directly, but also then tweak the User Agent to append, e.g. (plugin EDMC-Canonn) to it.
Someone brought up that EDMC plugins might be using the default
requests
User Agent string, which isn't helpful when trying to determine what is causing traffic.There's already
timeout_session.py
to quickly get arequests
session object with a timeout set, and it usesconfig.user_agent
.Ideally all plugins would not only use that, rather than
requests
session creation directly, but also then tweak the User Agent to append, e.g.(plugin EDMC-Canonn)
to it.