Skip to content

Fix logging configuration and harmonize loggers use

While testing kafka components inside the docker-compose environement, I noticed some logger outputs were missing (notably the journal publisher ones).

That diff fixes the logger configurations by using logging.basicConfig in the cli entrypoint. All loggers from swh-journal will inherit from this default configuration.

Also, harmonize the way a logger is created: prefer to do that in class constructor instead of doing it at module level.


Migrated from D1357 (view on Phabricator)

Merge request reports