Page MenuHomeSoftware Heritage

cli: Add support for loading a logging configuration file
ClosedPublic

Authored by olasd on Nov 14 2019, 7:09 PM.

Details

Summary

This should allow us to stop playing whack-a-mole with logging configuration
between Celery workers (where the logging configuration is hard-coded in our
initialization routines) and CLI tools (where we only have the log-level knob).

I'm not a big fan of logging.config.dictConfig, but it's standard and I hate
urllib3.connectionpool DEBUG messages even more...

This is also something that came up in a conversation with @zack.

Depends on D2278

Test Plan

tox

Diff Detail