P1-7(部分): 3个潜伏bug修复 - main.py app_root未定义/scheduler.py AsyncIOSScheduler拼写/config.py logger未定义
This commit is contained in:
@@ -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):
|
||||
"""应用配置类。
|
||||
|
||||
Reference in New Issue
Block a user