Update llama_stack/distribution/server/server.py

Adding logger per request.

Co-authored-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Peter Double 2025-04-01 05:29:14 -04:00 committed by GitHub
parent e71a482d71
commit b7072c3c67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,6 +247,7 @@ class TracingMiddleware:
# Check if the path is a FastAPI built-in path # Check if the path is a FastAPI built-in path
if any(path.startswith(fastapi_path) for fastapi_path in self.fastapi_paths): if any(path.startswith(fastapi_path) for fastapi_path in self.fastapi_paths):
# Pass through to FastAPI's built-in handlers # Pass through to FastAPI's built-in handlers
logger.debug(f"Bypassing custom routing for FastAPI built-in path: {path}")
return await self.app(scope, receive, send) return await self.app(scope, receive, send)
if not hasattr(self, "endpoint_impls"): if not hasattr(self, "endpoint_impls"):