Skip to content
Snippets Groups Projects

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading