From 55966c5cce2beec93780c61a4f6956fcb4c3320d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Jul 2023 00:00:14 -0500 Subject: [PATCH] improved logging output --- src/kwaylon/jokes/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kwaylon/jokes/base.py b/src/kwaylon/jokes/base.py index 4bfb646..c70d0a8 100644 --- a/src/kwaylon/jokes/base.py +++ b/src/kwaylon/jokes/base.py @@ -27,8 +27,8 @@ class GifJoke(Joke): if hasattr(self, 'chance'): roll = random.random() if roll > self.chance: - LOGGER.info(f'Roll was too high {roll:.2f} > {self.chance:.2f}') + LOGGER.info(f'{message.author.display_name}\'s roll was too high {roll:.2f} > {self.chance:.2f}') return else: - LOGGER.info(f'Passed roll threshold {roll:.2f} <= {self.chance:.2f}') + LOGGER.info(f'{message.author.display_name} passed roll threshold {roll:.2f} <= {self.chance:.2f}') await message.reply(self.url)