Merge branch 'no-issue-clean-logs' into 'develop'

Remove audio_url from logs

See merge request ekzyis/musicube!29
This commit is contained in:
Ramdip Gill 2022-09-26 20:23:49 +00:00
commit 4e1815f3b1
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class Music(commands.Cog):
if err: if err:
self.logger.error('Player error: %s', err) self.logger.error('Player error: %s', err)
self._next() 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) ctx.voice_client.play(audio, after=after)
embed = NowPlayingMessage(title=song.title, url=song.webpage_url) embed = NowPlayingMessage(title=song.title, url=song.webpage_url)
msg = await ctx.send(embed=embed) msg = await ctx.send(embed=embed)
@ -139,7 +139,7 @@ class Music(commands.Cog):
audio_url=data.get('url'), audio_url=data.get('url'),
webpage_url=data.get('webpage_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)) await self._queue.put((ctx, song))
if ctx.voice_client.is_playing(): if ctx.voice_client.is_playing():
embed = QueuedMessage(title=song.title, url=song.webpage_url) embed = QueuedMessage(title=song.title, url=song.webpage_url)