From aa955816f94dbf0b0e8a001b90c55f980c2efe69 Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sat, 30 Nov 2024 04:43:35 -0800 Subject: [PATCH] Update the logger to log timestamps --- token_bot/token_bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/token_bot/token_bot.py b/token_bot/token_bot.py index d6a1dae..5ef425b 100644 --- a/token_bot/token_bot.py +++ b/token_bot/token_bot.py @@ -10,7 +10,10 @@ class TokenBot: def __init__(self): load_dotenv() print("#### WoW Token Bot Startup ####") - logging.basicConfig() + logging.basicConfig( + format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', + datefmt='%Y-%m-%d %H:%M:%S', + ) log = logging.getLogger("TokenBotLogger") log.setLevel(logging.INFO) self.bot = Client(