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

counters: Allow gunicorn logging config to be effective

Refs. swh/infra/sysadm-environment#5327
parent 430d1b69
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,14 @@ case "$1" in
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-counters API server
exec gunicorn --bind 0.0.0.0:${PORT} \
--log-level ${SWH_LOG_LEVEL:-INFO} \
${EXTRA_CLI_FLAGS} \
--threads ${THREADS} \
--workers ${WORKERS} \
--timeout ${TIMEOUT} \
......
swh.counters
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