feat:为日志添加上限和配置防止膨胀
This commit is contained in:
@@ -24,6 +24,7 @@ from .official_configs import (
|
||||
EmojiConfig,
|
||||
ExpressionConfig,
|
||||
KeywordReactionConfig,
|
||||
LogConfig,
|
||||
MaimMessageConfig,
|
||||
MCPConfig,
|
||||
MemoryConfig,
|
||||
@@ -55,7 +56,7 @@ BOT_CONFIG_PATH: Path = (CONFIG_DIR / "bot_config.toml").resolve().absolute()
|
||||
MODEL_CONFIG_PATH: Path = (CONFIG_DIR / "model_config.toml").resolve().absolute()
|
||||
LEGACY_ENV_PATH: Path = (PROJECT_ROOT / ".env").resolve().absolute()
|
||||
MMC_VERSION: str = "1.0.0"
|
||||
CONFIG_VERSION: str = "8.9.11"
|
||||
CONFIG_VERSION: str = "8.9.17"
|
||||
MODEL_CONFIG_VERSION: str = "1.14.2"
|
||||
|
||||
logger = get_logger("config")
|
||||
@@ -109,6 +110,9 @@ class Config(ConfigBase):
|
||||
telemetry: TelemetryConfig = Field(default_factory=TelemetryConfig)
|
||||
"""遥测配置类"""
|
||||
|
||||
log: LogConfig = Field(default_factory=LogConfig)
|
||||
"""日志配置类"""
|
||||
|
||||
debug: DebugConfig = Field(default_factory=DebugConfig)
|
||||
"""调试配置类"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user