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

storage: Bump docker image to use optional logging configuration

Refs. swh/infra/sysadm-environment#5327
parent 54ac17e6
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,14 @@ case "$1" in
exec swh storage create-object-reference-partitions "$(date +%Y-%m-%d)" "$(date -d '+1 month' +%Y-%m-%d)"
;;
*)
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-storage 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} \
......
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