Skip to content
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
6 changes: 5 additions & 1 deletion src/bdba/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,12 @@ def increment(
retry = super().increment(method, url, response, error, _pool, _stacktrace)
# Use the Retry history to determine the number of retries.
num_retries = len(self.history) if self.history else 0
status = response.status if response else None
reason = response.reason if response else None
content = response.data.decode() if response else None
logger.warning(
f'{method=} {url=} returned {response=} {error=} {num_retries=} - trying again',
f'{method=} {url=} returned {status=} {reason=} {error=} {num_retries=} - trying again '
f'({content=})',
)
return retry

Expand Down
Loading