fix: приглушить httpcore/httpx DEBUG в логах; INFO при успешном сохранении алерта
All checks were successful
CI / test (push) Successful in 39s
All checks were successful
CI / test (push) Successful in 39s
- httpcore, httpx, asyncio, uvicorn.access → WARNING (убирает TCP-шум из /ui/logs) - После успешного INSERT irm_alerts: INFO с alert_id, title, sev, team - Теперь в /ui/logs видно: пришёл вебхук → сохранено (id=...) или ERROR Made-with: Cursor
This commit is contained in:
@ -198,6 +198,13 @@ async def _grafana_webhook_impl(
|
||||
fp_row,
|
||||
team_id,
|
||||
)
|
||||
logger.info(
|
||||
"grafana webhook saved: alert_id=%s title=%r sev=%s team=%s",
|
||||
raw_id,
|
||||
(title_row or "—")[:80],
|
||||
sev_row,
|
||||
str(team_id) if team_id else "—",
|
||||
)
|
||||
bus = getattr(request.app.state, "event_bus", None)
|
||||
if bus and raw_id is not None:
|
||||
title = str(body.get("title") or body.get("ruleName") or "")[:500]
|
||||
|
||||
Reference in New Issue
Block a user