Add request logging middleware for pod log visibility
Some checks failed
Build And Test / build-and-push (push) Failing after 38s

- Add gunicorn access/error log options to Dockerfile
- Create RequestLoggingMiddleware for detailed request logging
- Log request method, path, host, IP, NHN headers, response status, duration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 09:42:47 +09:00
parent 8b06504409
commit 2b3146288d
3 changed files with 61 additions and 1 deletions

View File

@ -19,4 +19,4 @@ COPY . .
EXPOSE 8000
CMD ["gunicorn", "--workers=3", "--bind=0.0.0.0:8000", "nhn_prj.wsgi:application"]
CMD ["gunicorn", "--workers=3", "--bind=0.0.0.0:8000", "--access-logfile=-", "--error-logfile=-", "--capture-output", "--log-level=info", "nhn_prj.wsgi:application"]