fix(config): 使用公共日志模块记录配置恢复

This commit is contained in:
jxxghp
2026-09-15 11:42:41 +08:00
parent 37ea8ba14d
commit 880cef2c88
4 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
import copy
import json
import logging
import threading
from collections.abc import Callable, Mapping
from typing import Any, Optional, TypeVar, Union
@@ -11,10 +10,10 @@ from sqlalchemy.orm import Session
from app.db.base import DbOper
from app.db.models.systemconfig import SystemConfig
from app.foundation.singleton import Singleton
from app.runtime.log import logger
from app.schemas.types import SystemConfigKey
T = TypeVar("T")
logger = logging.getLogger(__name__)
class SystemConfigOper(DbOper, metaclass=Singleton):

View File

@@ -761,7 +761,7 @@ flowchart LR
| 指标 | 当前值 |
|---|---:|
| Python 模块 | 1020 |
| 内部导入边 | 8,698 |
| 内部导入边 | 8,700 |
| 非平凡 SCC | 1(精确 containment 的 TMDB 移植包环) |
| Application / Chain 具体 Adapter 直连 | 0 / 0 |
| Direct egress | 53(债务已清零,53 条精确 containment) |

View File

@@ -94,7 +94,7 @@ ARCH-201 至 ARCH-204 均达到实现、验证、提交、推送和远端门禁
| 指标 | 当前值 | 解释 |
|---|---:|---|
| 宿主 Python 模块 / 内部依赖边 | 1022 / 8,698 | `dependency-baseline.json` 当前快照;分类、下载资源归类、订阅搜索、整理恢复、Agent 计划、工具视觉、终端生命周期与终端作用域模块的受控依赖 |
| 宿主 Python 模块 / 内部依赖边 | 1022 / 8,700 | `dependency-baseline.json` 当前快照;分类、下载资源归类、订阅搜索、整理恢复、Agent 计划、工具视觉、终端生命周期与终端作用域模块的受控依赖 |
| 非平凡 SCC | 1 | 仅保留精确 containment 的 29 模块 TMDB 移植包环 |
| 跨层 DB 边界债务 | 0 | Application、Chain、API、Agent、Runtime、Workflow 到 DB 的受控债务均为零 |
| Model/Oper 事务债务 | 0 | 自建 Session、自动事务装饰器、直接 commit/rollback 等基线均为零 |

View File

@@ -1077,8 +1077,8 @@
"runtime_only": true
}
},
"edge_count": 8698,
"edge_sha256": "633134fe072732f70b42225069c4e3356011ecf743b1f4e472adc1a7e2214ec2",
"edge_count": 8700,
"edge_sha256": "7ec6ad28dcdbffa171e97593f0ed5e36a297851e96245db967320f31aaf93aa0",
"edges": [
"app -> app.foundation",
"app -> app.foundation.environment",
@@ -6086,6 +6086,8 @@
"app.db.oper.systemconfig -> app.db.models.systemconfig",
"app.db.oper.systemconfig -> app.foundation",
"app.db.oper.systemconfig -> app.foundation.singleton",
"app.db.oper.systemconfig -> app.runtime",
"app.db.oper.systemconfig -> app.runtime.log",
"app.db.oper.systemconfig -> app.schemas",
"app.db.oper.systemconfig -> app.schemas.types",
"app.db.oper.transferexecutionstep -> app.db",