This commit is contained in:
Windpicker-owo
2025-08-31 00:20:17 +08:00
parent c7823245d2
commit d1d59591d8
2 changed files with 4 additions and 6 deletions

8
bot.py
View File

@@ -23,11 +23,9 @@ else:
# 最早期初始化日志系统,确保所有后续模块都使用正确的日志格式
from src.common.logger import initialize_logging, get_logger, shutdown_logging
# UI日志适配器 - 最小侵入式集成
try:
import ui_log_adapter # 自动设置UI日志传输
except ImportError:
pass
# UI日志适配器
import ui_log_adapter
initialize_logging()