mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Add extra details to rate limit logs
- Include the rate limit bucket for webhooks - Enable `stack_info` for the 429 warning.
This commit is contained in:
@@ -471,7 +471,7 @@ class HTTPClient:
|
||||
|
||||
# sleep a bit
|
||||
retry_after: float = data['retry_after']
|
||||
_log.warning(fmt, retry_after, bucket)
|
||||
_log.warning(fmt, retry_after, bucket, stack_info=True)
|
||||
|
||||
# check if it's a global rate limit
|
||||
is_global = data.get('global', False)
|
||||
|
||||
Reference in New Issue
Block a user