Truncate large webhook payloads in log entries (#4701)

This commit is contained in:
Shuchang Zheng
2026-02-11 09:34:37 -08:00
committed by GitHub
parent cc84c927f2
commit fd5632ddbd
3 changed files with 15 additions and 3 deletions

View File

@@ -3176,7 +3176,7 @@ class WorkflowService:
workflow_id=workflow_id,
workflow_run_id=workflow_run.workflow_run_id,
webhook_callback_url=workflow_run.webhook_callback_url,
payload=signed_data.signed_payload,
payload=signed_data.payload_for_log,
headers=signed_data.headers,
)
try:
@@ -3204,7 +3204,7 @@ class WorkflowService:
"Webhook failed",
workflow_id=workflow_id,
workflow_run_id=workflow_run.workflow_run_id,
webhook_data=signed_data.signed_payload,
webhook_data=signed_data.payload_for_log,
resp=resp,
resp_code=resp.status_code,
resp_text=resp.text,