From e82f8f6e8025d6248e9a583567e1bfbe69590806 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 26 Sep 2022 22:22:11 +0200 Subject: [PATCH] Remove audio_url from logs --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index c2307e8..55f1002 100644 --- a/src/bot.py +++ b/src/bot.py @@ -98,7 +98,7 @@ class Music(commands.Cog): if err: self.logger.error('Player error: %s', err) self._next() - self.logger.info('Now playing song "%s"', song.title) + self.logger.info('Now playing: %s (%s)', song.title, song.webpage_url) ctx.voice_client.play(audio, after=after) embed = NowPlayingMessage(title=song.title, url=song.webpage_url) msg = await ctx.send(embed=embed) @@ -139,7 +139,7 @@ class Music(commands.Cog): audio_url=data.get('url'), webpage_url=data.get('webpage_url') ) - self.logger.info('Qeueing song: title="%s", audio_url=%s, webpage_url=%s', song.title, song.audio_url, song.webpage_url) + self.logger.info('Qeueing song: %s (%s)', song.title, song.webpage_url) await self._queue.put((ctx, song)) if ctx.voice_client.is_playing(): embed = QueuedMessage(title=song.title, url=song.webpage_url)