Skip to content

Commit 36397b6

Browse files
committed
more logging
1 parent ac8e3e3 commit 36397b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/keboola/http_client/async_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ async def _request(
174174

175175
# Apply backoff and retry
176176
backoff = self.backoff_factor ** retry_attempt
177-
logging.error(f"Retry attempt {retry_attempt + 1} for {method} request to {url}: {message}")
177+
logging.error(
178+
f"Retry attempt {retry_attempt + 1} for {method} request to {url}: "
179+
f"Exception={type(e).__name__}, Message='{message}', "
180+
f"Params={all_params}"
181+
)
178182
await asyncio.sleep(backoff)
179183

180184
async def get(self, endpoint: Optional[str] = None, **kwargs) -> Dict[str, Any]:

0 commit comments

Comments
 (0)