Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom gunicorn configuration file for logging #103

Open
thomascenni opened this issue Dec 7, 2021 · 0 comments
Open

Custom gunicorn configuration file for logging #103

thomascenni opened this issue Dec 7, 2021 · 0 comments

Comments

@thomascenni
Copy link

Hi,
I have a custom gunicorn file with:

...
access_log_format = '%({x-forwarded-for}i)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
...

This custom gunicorn file was working perfectly with the corresponding wsgi image at https://github.com/tiangolo/meinheld-gunicorn-docker.

When I use the image at https://github.com/tiangolo/uvicorn-gunicorn-docker, I just changed my Django application MODULE_NAME from the wsgi to the asgi. But the logs are without the information requested on access_log_format.

I really don't understand, I am struggling many hours with this; is it something related to uvicorn logging that is not "passing back" to gunicorn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant