From 7807a9ee53135d8a5e17f3f786c11023c56d91a0 Mon Sep 17 00:00:00 2001 From: pythagodzilla Date: Fri, 20 Jun 2025 08:58:22 +0800 Subject: [PATCH] Change the way that store the log files. Now, when run the program, You need make the directory by yourself. --- Authtication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Authtication.py b/Authtication.py index 5d2c154..c6e2df4 100644 --- a/Authtication.py +++ b/Authtication.py @@ -1,6 +1,7 @@ import os import requests import time +import datetime import selenium.common.exceptions import logging from dotenv import load_dotenv @@ -11,7 +12,7 @@ logging.basicConfig( level=logging.INFO, format="%(levelno)s - %(levelname)s - %(asctime)s - %(name)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", - filename="log.log", + filename=f"logs/{datetime.date.today()}.log", filemode="a" )