Print nicer method name (without memory address) in rate_limit errors
MODIFY
plex_trakt_sync/decorators/rate_limit.py
plex_trakt_sync/decorators/rate_limit.py
@@ -30,7 +30,7 @@ def wrapper(*args, **kwargs):
seconds = 1 + retry
retry += 1
logger.warning(
- f"{e} for {fn}, retrying after {seconds} seconds (try: {retry}/{retries})"
+ f"{e} for {fn.__module__}.{fn.__name__}(), retrying after {seconds} seconds (try: {retry}/{retries})"
)
sleep(seconds)

Print nicer method name (without memory address) in rate_limit errors