Skip to content

Honor Gunicorn access log format in UvicornWorker#2938

Open
ColdWeather-gpt wants to merge 1 commit into
Kludex:mainfrom
ColdWeather-gpt:fix/gunicorn-access-logformat
Open

Honor Gunicorn access log format in UvicornWorker#2938
ColdWeather-gpt wants to merge 1 commit into
Kludex:mainfrom
ColdWeather-gpt:fix/gunicorn-access-logformat

Conversation

@ColdWeather-gpt
Copy link
Copy Markdown

Summary

  • Add a Gunicorn access formatter for uvicorn.workers.UvicornWorker
  • Apply Gunicorn's access_log_format to Uvicorn access records when running under Gunicorn
  • Add regression tests for custom Gunicorn access log atoms and non-Uvicorn records

Fixes #527

Tests

  • ruff check uvicorn/workers.py tests/test_workers.py
  • python -m compileall -q uvicorn tests/test_workers.py
  • pytest tests/test_workers.py -q
  • pytest tests/test_workers.py tests/test_config.py::test_config_access_log -q

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

Successfully merging this pull request may close these issues.

Honor gunicorn access log format

1 participant