aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-02 15:56:51 -0400
committerRapptz <[email protected]>2015-10-02 15:56:51 -0400
commit7f252468b3d6b3c4a4e68e8b197574ddfe39f135 (patch)
tree87dc8a79cdc78b7dcc5f5aa746d8c31f40b31038
parentFix an error with logging in the login method. (diff)
downloaddiscord.py-7f252468b3d6b3c4a4e68e8b197574ddfe39f135.tar.xz
discord.py-7f252468b3d6b3c4a4e68e8b197574ddfe39f135.zip
Fix another logging error
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index a4a0fb2e..64cb662f 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -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))