Potential fix for code scanning alert no. 5: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
pacnpal
2025-02-12 22:08:36 -05:00
committed by GitHub
parent 9fd6a2c7b8
commit fdced4ad8b

View File

@@ -379,7 +379,7 @@ class Birthday(commands.Cog):
if birthday_channel_id:
channel = self.bot.get_channel(birthday_channel_id)
if not channel: # If the set channel doesn't exist anymore
logger.warning(f"Birthday channel {birthday_channel_id} not found in guild {ctx.guild.id}")
logger.warning("Birthday channel not found in the guild")
channel = ctx.channel
else:
channel = ctx.channel