Skip to content
Snippets Groups Projects
Verified Commit d4c951e8 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

scheduler: Allow gunicorn logging config to be effective

Refs. swh/infra/sysadm-environment#5327
parent 1dadba4f
No related branches found
Tags swh-web-20240822.2
No related merge requests found
...@@ -17,9 +17,14 @@ case "$1" in ...@@ -17,9 +17,14 @@ case "$1" in
exec swh $@ exec swh $@
;; ;;
*) *)
EXTRA_CLI_FLAGS=""
if [ ! -z "${SWH_LOG_CONFIG_JSON}" ]; then
EXTRA_CLI_FLAGS="--log-config-json ${SWH_LOG_CONFIG_JSON}"
fi
echo Starting the swh-scheduler API server echo Starting the swh-scheduler API server
exec gunicorn --bind 0.0.0.0:${PORT} \ exec gunicorn --bind 0.0.0.0:${PORT} \
--log-level ${SWH_LOG_LEVEL:-INFO} \ --log-level ${SWH_LOG_LEVEL:-INFO} \
${EXTRA_CLI_FLAGS} \
--threads ${THREADS} \ --threads ${THREADS} \
--workers ${WORKERS} \ --workers ${WORKERS} \
--reload \ --reload \
......
swh.scheduler swh.scheduler
python-json-logger
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment