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

Received data #557

Merged
merged 2 commits into from
Jan 13, 2025
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 @@ -431,7 +431,7 @@ def data_received(self, data: bytes) -> None:
Handle received data from client. Since we need to process the complete body
through our pipeline before forwarding, we accumulate the entire request first.
"""
logger.info(f"Received data from {self.peername}: {data}")
# logger.debug(f"Received data from {self.peername}: {data}")
try:
if not self._check_buffer_size(data):
self.send_error_response(413, b"Request body too large")
Expand All @@ -452,7 +452,7 @@ def data_received(self, data: bytes) -> None:
if self._has_complete_body():
# Process the complete request through the pipeline
complete_request = bytes(self.buffer)
logger.debug(f"Complete request: {complete_request}")
# logger.debug(f"Complete request: {complete_request}")
self.buffer.clear()
asyncio.create_task(self._forward_data_to_target(complete_request))

Expand Down
Loading