(request: Request, call_next)
| 400 | |
| 401 | @app.middleware("http") |
| 402 | async def log_requests(request: Request, call_next): |
| 403 | # Get request details |
| 404 | method = request.method |
| 405 | path = request.url.path |
| 406 | |
| 407 | # Log only basic request details at debug level |
| 408 | logger.debug(f"Request: {method} {path}") |
| 409 | |
| 410 | # Process the request and get the response |
| 411 | response = await call_next(request) |
| 412 | |
| 413 | return response |
| 414 | |
| 415 | |
| 416 | # Not using validation function as we're using the environment API key |
nothing calls this directly
no outgoing calls
no test coverage detected