fix(telegram): add error_detail to logger
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 3m8s
CD Pipeline / build-and-deploy (push) Successful in 15m53s
CD Pipeline / post-deploy-checks (push) Successful in 2m43s
E2E Health Check / e2e-health (push) Successful in 45s
AI 技術雷達監控 / ai-technology-watch (push) Failing after 14m40s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 23s

This commit is contained in:
Your Name
2026-07-17 20:02:51 +08:00
parent 0ab4729e23
commit 8e092845bf

View File

@@ -6639,11 +6639,12 @@ class TelegramGateway:
except Exception as exc:
logger.warning(
"controlled_apply_result_finalize_failed",
automation_run_id=identity["automation_run_id"],
incident_id=identity["incident_id"],
apply_op_id=identity["apply_op_id"],
automation_run_id=identity.get("automation_run_id"),
incident_id=identity.get("incident_id"),
apply_op_id=identity.get("apply_op_id"),
attempt=attempt + 1,
error_type=type(exc).__name__,
error_detail=str(exc),
)
if attempt + 1 < _CONTROLLED_APPLY_OUTBOUND_FINALIZE_ATTEMPTS:
await asyncio.sleep(0.05 * (attempt + 1))