Add details of last call on error
MODIFY
plextraktsync/decorators/rate_limit.py
plextraktsync/decorators/rate_limit.py
@@ -25,6 +25,7 @@ def wrapper(*args, **kwargs):
if retry == retries:
logger.error(f"Error: {e}")
logger.error("API didn't respond properly, script will abort now. Please try again later.")
+ logger.error(f"Last call: {fn.__module__}.{fn.__name__}({args[1:]}, {kwargs})")
exit(1)
if isinstance(e, RateLimitException):

Add details of last call on error