P1-7(部分): 3个潜伏bug修复 - main.py app_root未定义/scheduler.py AsyncIOSScheduler拼写/config.py logger未定义

This commit is contained in:
Simon
2026-07-18 01:13:33 +08:00
parent 873f3176e8
commit 2a4db59f02
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -6,12 +6,16 @@
# 所有配置项集中管理,避免散落在代码各处
# =============================================================================
import logging
import os
from typing import List
import redis.asyncio as aioredis
from pydantic_settings import BaseSettings, SettingsConfigDict
# v4.0 P1-7 修复:get_automation_thresholds 异常分支使用 logger 但未定义
logger = logging.getLogger(__name__)
class Settings(BaseSettings):
"""应用配置类。