Closed AndrewKvalheim closed 2 months ago
That's fantastic. Thank you!
One thing I notice is that I get lots of lines like these in my logs now:
2024-04-22 18:05:02.084 UTC: Starting new HTTPS connection (1): hc-ping.com:443
One for each HTTPS connections. Do you have any thoughts on that @AndrewKvalheim ?
Sorry, somehow I never did a full run in DEBUG
. This explains what’s happening:
If you are using the standard library
logging
module urllib3 will emit several logs. In some cases this can be undesirable. You can use the standard logger interface to change the log level for urllib3's logger:logging.getLogger("urllib3").setLevel(logging.WARNING)
https://github.com/AndrewKvalheim/FediFetcher/commit/1fed215977fdb20aa9356fbd3e3f0861d16c1aa0 addresses it. I can send that as a PR if that’s helpful.
Great. Thanks for the very quick answer!
Would you mind sending that as PR, please?
Thanks again!
Currently FediFetcher’s logs contain a large number of messages about individual posts:
I’d like to be able to filter it down to just high level reports and notices:
Changes proposed:
log
function with Python’s native logger, which supports multiple log levels.--log-level
option.