[BACKEND] Debug log exception on retry

This commit is contained in:
Jesse Bannon 2024-04-02 17:23:00 -07:00
parent c622cf68b5
commit 7c40c2f590

View file

@ -35,7 +35,7 @@ def retry(times: int, exceptions: Tuple[Type[Exception], ...], wait_sec: int = 5
try: try:
return func(*args, **kwargs) return func(*args, **kwargs)
except exceptions: except exceptions:
logger.debug( logger.exception(
"Exception thrown when attempting to run %s, attempt %d of %d", "Exception thrown when attempting to run %s, attempt %d of %d",
func.__name__, func.__name__,
attempt + 1, attempt + 1,