From a9fd707b3d3b8e2c05f2a7be00acbcfc63f57e14 Mon Sep 17 00:00:00 2001 From: Yiays Date: Fri, 25 Oct 2024 14:01:32 +1300 Subject: [PATCH] Tweak logging to try and catch incorrect anon-id issue. --- extensions/confessions_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/confessions_common.py b/extensions/confessions_common.py index aa26e64..7e94256 100644 --- a/extensions/confessions_common.py +++ b/extensions/confessions_common.py @@ -753,8 +753,8 @@ async def send_confession( if 'Log' in self.bot.cogs and channel == self.targetchannel: logentry = ( - f'{inter.guild.name}/{self.anonid}: {self.bot.utilities.truncate(self.content)}' + - (' (attachment)' if self.file else '') + f'{inter.guild.name}/{self.anonid} ({self.author.name}): ' + + self.bot.utilities.truncate(self.content) + (' (attachment)' if self.file else '') ) await self.bot.cogs['Log'].log_misc_str(content=logentry)