MCPcopy Create free account
hub / github.com/1rgs/claude-code-proxy / log_requests

Function log_requests

server.py:402–413  ·  view source on GitHub ↗
(request: Request, call_next)

Source from the content-addressed store, hash-verified

400
401@app.middleware("http")
402async 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected