https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 6b795e3fdfeb97391a5ba6f6e162ace77b0ef18d authored by Nicolas Dandrimont on 08 March 2019, 16:37:01 UTC, committed by Nicolas Dandrimont on 13 March 2019, 14:05:24 UTC
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.
1 parent 6dbfd06
History
Tip revision: 6b795e3fdfeb97391a5ba6f6e162ace77b0ef18d authored by Nicolas Dandrimont on 08 March 2019, 16:37:01 UTC
Introduce SWH_LOG_TARGET to allow switching between console and journal
Tip revision: 6b795e3
File Mode Size
bin
data
docs
sql
swh
.gitignore -rw-r--r-- 102 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 151 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 1.3 KB
conftest.py -rw-r--r-- 562 bytes
pytest.ini -rw-r--r-- 54 bytes
requirements-swh.txt -rw-r--r-- 19 bytes
requirements-test.txt -rw-r--r-- 133 bytes
requirements.txt -rw-r--r-- 344 bytes
setup.py -rwxr-xr-x 2.2 KB
tox.ini -rw-r--r-- 538 bytes

README.md

back to top