fix: 修复通知日志不可见问题

- notify_dispatch/agent_dispatcher 改用主logger(alert_platform)
- edge_compat 异常不再静默吞掉,输出错误日志

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 11:22:06 +08:00
parent 7cc4f604d0
commit ce5272413b
3 changed files with 4 additions and 8 deletions

View File

@@ -10,7 +10,6 @@
VLM 或企微不可用时自动降级,不影响系统运行。
"""
import logging
from datetime import datetime
from typing import Dict, List
@@ -22,8 +21,7 @@ from app.models import (
from app.config import settings
from app.services.vlm_service import get_vlm_service
from app.services.wechat_service import get_wechat_service
logger = logging.getLogger(__name__)
from app.utils.logger import logger
async def process_alarm_notification(alarm_data: Dict):