tiangolo / uvicorn-gunicorn-docker

Docker image with Uvicorn managed by Gunicorn for high-performance web applications in Python with performance auto-tuning.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Disable access log when using live-reload

RafaelWO opened this issue · comments

When using gunicorn (via start.sh), one can disable the API access log via setting the corresponding environment variable to an empty value: ACCESS_LOG=. However, this is not possible when running the app with uvicorn and live-reload (via start-reload.sh).

But since you can pass the option --no-access-log to uvicorn (see docs), the script could be extended to disable the access log if the variable is set to an empty value.