From 482ae4b97891f5e70ea22d7cd84312db9985f72f Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Thu, 19 Jun 2025 09:39:31 +0200 Subject: [PATCH] logging --- discord/voice_state.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/voice_state.py b/discord/voice_state.py index a53789070..d0996acdb 100644 --- a/discord/voice_state.py +++ b/discord/voice_state.py @@ -632,6 +632,7 @@ class VoiceConnectionState: continue if exc.code == 4015: + _log.info('Disconnected from voice, attempting a resume...') try: await self._connect( reconnect=reconnect, @@ -641,11 +642,12 @@ class VoiceConnectionState: resume=True, ) except asyncio.TimeoutError: - _log.warning('Could not resume the voice connection... Disconnecting...') + _log.info('Could not resume the voice connection... Disconnecting...') if self.state is not ConnectionFlowState.disconnected: await self.disconnect() break else: + _log.info('Successfully resumed voice connection') continue _log.debug('Not handling close code %s (%s)', exc.code, exc.reason or 'no reason')