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
4 changes: 2 additions & 2 deletions faststream_redis_timers/subscriber/usecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def _consume(self, client: "Redis[bytes]", *, start_signal: anyio.Event) -
try:
fetched = await self._get_msgs(client, tg, limiter)
except Exception as e: # noqa: BLE001 # pragma: no cover
self._log(log_level=logging.ERROR, message="Message fetch error", exc_info=e)
self._log(log_level=logging.ERROR, message=f"Message fetch error: {e!r}", exc_info=e)
error_attempt = min(error_attempt + 1, _BACKOFF_EXP_CAP)
delay = min(2.0 ** (error_attempt - 1) * random.uniform(0.5, 1.5), 30.0) # noqa: S311
await anyio.sleep(delay)
Expand Down Expand Up @@ -185,7 +185,7 @@ async def _claim_and_consume(
except Exception as e: # noqa: BLE001 # pragma: no cover
self._log(
log_level=logging.ERROR,
message=f"Timer {raw_id!r} consume error",
message=f"Timer {raw_id!r} consume error: {e!r}",
exc_info=e,
)

Expand Down
Loading