mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Fix another logging error
This commit is contained in:
parent
74db314d30
commit
7f252468b3
@ -406,7 +406,7 @@ class Client(object):
|
||||
r = requests.post('{}/{}/channels'.format(endpoints.USERS, self.user.id), json=payload, headers=self.headers)
|
||||
if r.status_code == 200:
|
||||
data = r.json()
|
||||
log.debug(request_success_log.format(name='start_private_message', response=response, json=payload, data=data))
|
||||
log.debug(request_success_log.format(name='start_private_message', response=r, json=payload, data=data))
|
||||
self.private_channels.append(PrivateChannel(id=data['id'], user=user))
|
||||
else:
|
||||
log.error(request_logging_format.format(name='start_private_message', response=r))
|
||||
|
Loading…
x
Reference in New Issue
Block a user