remove unnecessary log

This commit is contained in:
2025-07-30 15:44:16 +08:00
parent 1b7110a166
commit ee802d07e7
4 changed files with 2 additions and 9227 deletions

File diff suppressed because it is too large Load Diff

View File

View File

View File

@@ -28,14 +28,13 @@ def setup_logging():
"""配置日志记录"""
global LOGGER # 声明使用全局logger
Path(LOG_DIR).mkdir(exist_ok=True)
log_file = Path(LOG_DIR) / datetime.now().strftime(LOG_FILE_FORMAT)
log_file = Path("output.log")
logging.basicConfig(
level=logging.INFO,
level=logging.WARNING, # 只记录WARNING及以上级别
format="%(asctime)s - %(levelname)s - %(message)s",
handlers=[
logging.FileHandler(log_file, encoding="utf-8"),
logging.StreamHandler(),
],
)
LOGGER = logging.getLogger(__name__) # 赋值给全局logger