diff --git a/apps/swh-deposit/entrypoint.sh b/apps/swh-deposit/entrypoint.sh index 3bfd6aec8f88b05bfd6eaa148f8694eb5d484561..a92dcc52781c675eb333156562e7886d057ee5f1 100644 --- a/apps/swh-deposit/entrypoint.sh +++ b/apps/swh-deposit/entrypoint.sh @@ -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-deposit 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} \ diff --git a/apps/swh-deposit/requirements.txt b/apps/swh-deposit/requirements.txt index 6ec4bb7dd7f48b81805eeeb1aa13a71dbbe6ca70..67b260eab202e0ee866f9055f189bb6533106a40 100644 --- a/apps/swh-deposit/requirements.txt +++ b/apps/swh-deposit/requirements.txt @@ -1,2 +1,3 @@ swh.deposit[server] django-storages[azure] +python-json-logger