add org id to the log for Failed to update workflow (#1057)

This commit is contained in:
Shuchang Zheng
2024-10-25 12:27:10 -07:00
committed by GitHub
parent eedbac5768
commit 7f21e23244

View File

@@ -762,7 +762,11 @@ async def update_workflow(
except WorkflowParameterMissingRequiredValue as e:
raise e
except Exception as e:
LOG.exception("Failed to update workflow", workflow_permanent_id=workflow_permanent_id)
LOG.exception(
"Failed to update workflow",
workflow_permanent_id=workflow_permanent_id,
organization_id=current_org.organization_id,
)
raise FailedToUpdateWorkflow(workflow_permanent_id, f"<{type(e).__name__}: {str(e)}>")