mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-08-23 18:31:43 +02:00
Added member id on error to make error message more useful
This commit is contained in:
parent
1930dfab77
commit
fcffb3d2ff
@ -675,11 +675,13 @@ class DiscordClient:
|
||||
)
|
||||
logger.debug('%s: response:\n%s', uid, r.text)
|
||||
if not r.ok:
|
||||
member_id = url.split("/")[-1]
|
||||
logger.error(
|
||||
'%s: Discord API returned error code %d and this response: %s',
|
||||
'%s: Discord API returned error code %d and this response: %s. This is for id: %s',
|
||||
uid,
|
||||
r.status_code,
|
||||
r.text
|
||||
r.text,
|
||||
member_id,
|
||||
)
|
||||
|
||||
if r.status_code == HTTPStatus.TOO_MANY_REQUESTS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user