diff options
| author | Rapptz <[email protected]> | 2015-10-02 15:56:51 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-02 15:56:51 -0400 |
| commit | 7f252468b3d6b3c4a4e68e8b197574ddfe39f135 (patch) | |
| tree | 87dc8a79cdc78b7dcc5f5aa746d8c31f40b31038 | |
| parent | Fix an error with logging in the login method. (diff) | |
| download | discord.py-7f252468b3d6b3c4a4e68e8b197574ddfe39f135.tar.xz discord.py-7f252468b3d6b3c4a4e68e8b197574ddfe39f135.zip | |
Fix another logging error
| -rw-r--r-- | discord/client.py | 2 |
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)) |