add cse logs
Deploy / deploy (push) Successful in 52s

This commit is contained in:
Раис Юсупалиев
2026-06-27 17:56:03 +03:00
parent 4262b8a200
commit 1c5778aeeb
4 changed files with 66 additions and 4 deletions
@@ -179,6 +179,7 @@ class CSEClient:
"cse_request_server_error",
operation=operation,
status_code=response.status_code,
response_excerpt=_response_excerpt(response.text),
)
raise CSEClientError(
f"CSE {operation} request failed with status "
@@ -233,6 +234,10 @@ class CSEClient:
return self._retry_backoff_seconds * (2**attempt)
def _response_excerpt(text: str, *, limit: int = 1000) -> str:
return " ".join(text.split())[:limit]
class CSEProvider(DeliveryProvider):
name = CSE_PROVIDER_NAME