HomeSoftware Heritage

Introduce SWH_LOG_TARGET to allow switching between console and journal

Description

Introduce SWH_LOG_TARGET to allow switching between console and journal

The current state of the celery worker/utility logging setup makes us log twice:
the default value of log_console can't be overridden by the cli flag in celery
workers.

The environment variable can be set to journal when running as a systemd
service; this shuts down the console logger, and allows the metadata added to
log messages to pass through.

Details

Provenance
olasdAuthored on Mar 8 2019, 5:37 PM
olasdPushed on Mar 13 2019, 3:31 PM
Differential Revision
D1233: Introduce SWH_LOG_TARGET to allow switching between console and journal
Parents
rDSCH6dbfd0615ca4: Remove ghtorrent/fake.py, it's not used anymore.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 4629
Build 6143: test-and-build