This commit is contained in:
陈志谦 2026-09-23 14:43:49 +00:00 • committed by GitHub
commit 03e05bcc60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -454,7 +454,6 @@ class S3Logger(CustomBatchLogger, BaseAWSLLM):
Args:
start_time (datetime): The start time of the logging event.
standard_logging_payload (Optional[StandardLoggingPayload]): The payload to be logged.
s3_path (Optional[str]): The S3 path prefix.
Returns:
Optional[s3BatchLoggingElement]: The created s3BatchLoggingElement, or None if payload is None.
@ -631,7 +630,7 @@ class S3Logger(CustomBatchLogger, BaseAWSLLM):
response: Final = await self.async_httpx_client.get(url, headers=signed_headers)
if response.status_code != 200:
verbose_logger.exception("S3 object not found, saw response=", response.text)
verbose_logger.exception("S3 object not found, saw response=%s", response.text)
return None
# Parse JSON response
@ -651,8 +650,7 @@ class S3Logger(CustomBatchLogger, BaseAWSLLM):
Allows fetching a dict of the proxy server request from s3 or GCS bucket.
Args:
request_id: The unique request ID to search for
start_time: The start time of the request (datetime or ISO string)
object_key: The object key to fetch from cold storage
Returns:
Optional[dict]: The request data dictionary or None if not found