Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Fix confusing debug messages #409

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/codegate/providers/copilot/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _select_pipeline(self, method: str, path: str) -> Optional[CopilotPipeline]:
logger.debug("Selected CopilotChatStrategy")
return CopilotChatPipeline(self.pipeline_factory)

logger.debug("No pipeline strategy selected")
logger.debug("No pipeline selected")
return None

async def _body_through_pipeline(
Expand All @@ -169,12 +169,12 @@ async def _body_through_pipeline(
headers: list[str],
body: bytes,
) -> Tuple[bytes, PipelineContext]:
logger.debug(f"Processing body through pipeline: {len(body)} bytes")
strategy = self._select_pipeline(method, path)
if len(body) == 0 or strategy is None:
# if we didn't select any strategy that would change the request
# let's just pass through the body as-is
return body, None
logger.debug(f"Processing body through pipeline: {len(body)} bytes")
return await strategy.process_body(headers, body)

async def _request_to_target(self, headers: list[str], body: bytes):
Expand Down
Loading