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

graphql: Allow gunicorn logging config to be effective

Refs. swh/infra/sysadm-environment#5327
parent d8c8f916
No related branches found
Tags swh-web-20240829.1
No related merge requests found
......@@ -7,9 +7,14 @@ case "$1" in
exec bash -i
;;
*)
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-graphql 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} \
......
......@@ -6,3 +6,4 @@ h11
starlette
typing-extensions
swh-graphql
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