From 3a0336588b32d8633cf36686a2f9da0f6191eb79 Mon Sep 17 00:00:00 2001 From: Andrew James Date: Sat, 16 Mar 2024 23:41:32 +1100 Subject: [PATCH] remove timestamp from log message, part of format instead --- discord_bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord_bot.py b/discord_bot.py index 7fd207f..86ff0fd 100644 --- a/discord_bot.py +++ b/discord_bot.py @@ -209,8 +209,7 @@ async def background_task() -> None: # Load the output as a JSON list games = json.loads(output) - ct = datetime.datetime.now() - logger.info('[' + str(ct) + '] Refreshing game list - ' + str(len(games)) + ' games') + logger.info('Refreshing game list - ' + str(len(games)) + ' games') for game in games: if any_player_name_is_invalid(game['players']) or any_player_name_contains_a_banned_word(game['players']):