aboutsummaryrefslogtreecommitdiff
path: root/discord/voice_client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-05-01 02:48:39 -0400
committerRapptz <[email protected]>2019-05-01 02:49:52 -0400
commitabb9c067cc217e9dd0932f9f595adaae38e562d7 (patch)
treefa68eb614320b0c0dba14258b1be53000b596665 /discord/voice_client.py
parent[tasks] Add way to query cancellation state for Loop.after_loop (diff)
downloaddiscord.py-abb9c067cc217e9dd0932f9f595adaae38e562d7.tar.xz
discord.py-abb9c067cc217e9dd0932f9f595adaae38e562d7.zip
Add log line to show if we disconnected normally.
Diffstat (limited to 'discord/voice_client.py')
-rw-r--r--discord/voice_client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/voice_client.py b/discord/voice_client.py
index be7a4d69..33eedb1f 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -247,6 +247,7 @@ class VoiceClient:
# 4014 - voice channel has been deleted.
# 4015 - voice server has crashed
if exc.code in (1000, 4014, 4015):
+ log.info('Disconnecting from voice normally, close code %d.', exc.code)
await self.disconnect()
break