Change a lot of logging INFO calls to be less verbose

Some of the logs were only useful for debug scenarios, so they have
been downgraded to DEBUG. Others were in INFO but supposed to be in
WARNING so those were upgraded.
This commit is contained in:
Rapptz
2022-08-15 10:21:36 -04:00
parent 0ec06f0ac5
commit 3802780f77
7 changed files with 20 additions and 20 deletions

View File

@ -189,7 +189,7 @@ class FFmpegAudio(AudioSource):
if proc is MISSING:
return
_log.info('Preparing to terminate ffmpeg process %s.', proc.pid)
_log.debug('Preparing to terminate ffmpeg process %s.', proc.pid)
try:
proc.kill()
@ -533,9 +533,9 @@ class FFmpegOpusAudio(FFmpegAudio):
except Exception:
_log.exception("Fallback probe using '%s' failed", executable)
else:
_log.info("Fallback probe found codec=%s, bitrate=%s", codec, bitrate)
_log.debug("Fallback probe found codec=%s, bitrate=%s", codec, bitrate)
else:
_log.info("Probe found codec=%s, bitrate=%s", codec, bitrate)
_log.debug("Probe found codec=%s, bitrate=%s", codec, bitrate)
finally:
return codec, bitrate
@ -745,5 +745,5 @@ class AudioPlayer(threading.Thread):
def _speak(self, speaking: SpeakingState) -> None:
try:
asyncio.run_coroutine_threadsafe(self.client.ws.speak(speaking), self.client.client.loop)
except Exception as e:
_log.info("Speaking call in player failed: %s", e)
except Exception:
_log.exception("Speaking call in player failed")