Add request logging middleware for pod log visibility
Some checks failed
Build And Test / build-and-push (push) Failing after 38s
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:
@ -38,6 +38,7 @@ INSTALLED_APPS = [
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
"nhn_prj.middleware.RequestLoggingMiddleware", # 요청 로깅 (맨 위)
|
||||
"corsheaders.middleware.CorsMiddleware",
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
@ -240,5 +241,11 @@ LOGGING = {
|
||||
"level": "INFO",
|
||||
"propagate": False,
|
||||
},
|
||||
# 요청 로깅 미들웨어
|
||||
"nhn_prj.middleware": {
|
||||
"handlers": ["console"],
|
||||
"level": "INFO",
|
||||
"propagate": False,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user