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:30 -04:00 committed by GitHub
parent b7072c3c67
commit ca2c46a6e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -257,6 +257,7 @@ class TracingMiddleware:
_, _, trace_path = find_matching_endpoint(scope.get("method", "GET"), path, self.endpoint_impls)
except ValueError:
# If no matching endpoint is found, pass through to FastAPI
logger.debug(f"No matching endpoint found for path: {path}, falling back to FastAPI")
return await self.app(scope, receive, send)
trace_context = await start_trace(trace_path, {"__location__": "server", "raw_path": path})