프로그래밍 연습하기

Gunicorn access_log_format이 적용되지 않는 문제 본문

Python

Gunicorn access_log_format이 적용되지 않는 문제

john.k 2023. 8. 8. 12:39
반응형

FastAPI 앱을 만들어서 배포해보는 프로젝트를 하는데,

Gunicorn 로그 포맷이 바뀌지 않는 문제가 있었습니다.

그래서 여러 방법으로 바꿔보려고 했는데, 여전히 성과가 없어 인터넷을 더 찾아보니 다음과 같은 이슈를 찾을 수 있었습니다. 

https://github.com/encode/uvicorn/issues/527

 

Honor gunicorn access log format · Issue #527 · encode/uvicorn

When running under gunicorn, --access-logformat isn't honored. There was some discussion of this in #389, but I didn't see an open issue for it.

github.com

Gunicorn Github 쪽에도 이슈가 있는데, Uvicorn worker를 사용할 때 Gunicorn access_log_format이 적용되지 않는 것 같습니다.

내용을 대충 보니 Uvicorn 쪽에서 해결되어야 한다고 하는 거 같은데 아직 해결이 안된 것으로 보입니다.

반응형
Comments