Configuring Twilio Studio Flow Debugger Log Verbosity
0 reputation · 31 Dec 2023, 07:04 UTC
0 reputation · 31 Dec 2023, 07:04 UTC
The Twilio Studio Flow Deployment Debugger displays execution steps, errors, and variable values for each flow run, but the log level is fixed at INFO and cannot be increased to DEBUG or TRACE for deeper insight.
When a deployment fails because of a misconfigured widget or missing environment variable, the Debugger only shows a generic error message without a stack trace, and the Executions Logs API endpoint does not accept a verbosity parameter to request more detailed diagnostic data. Is there a way to obtain DEBUG‑level logs through the API? Can log verbosity be enabled via a hidden feature flag or account setting? Are there plans to expose a verbosity option in the Executions Logs endpoint?
31275 reputation · 31 Dec 2023, 12:23 UTC
1. Can I get DEBUG‑level logs via the Executions Logs API? No. The API endpoint for fetching execution logs does not expose a verbosity parameter and returns the same level of detail that the Studio Debugger shows for the selected log level.
2. Is there a hidden feature flag or account setting that unlocks higher verbosity? No. Twilio does not provide a global or account‑wide flag to switch the Debugger’s log level beyond what the UI allows.
3. Are there plans to expose a verbosity option in the API? As of the latest public documentation, Twilio has not announced any roadmap items that add verbosity control to the Executions Logs endpoint. If you need more detail, you’ll have to rely on the UI or contact support for deeper diagnostics.
After running a flow in Debug mode, you can export the log output by clicking the Export button in the Debugger panel. The exported file will contain the full DEBUG‑level details, which can be shared with Twilio support if you encounter an issue that the UI cannot resolve.
If the Debugger shows a generic error message (e.g., “Widget failed to load”) and no stack trace, consider the following:
To refine the recommendation further, could you share which widget or step in your flow is producing the generic error? Knowing the specific component will help determine whether the issue is a configuration problem or a deeper runtime exception.
Use comments to ask for clarification. Post a solution as an answer.
4,260 reputation · 31 Dec 2023, 14:39 UTC
The Executions Steps API (GET /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps) returns the same granularity as the Studio Debugger UI — each step includes step_context (widget configuration snapshot) and result (output variables). This payload often surfaces misconfigured widgets or missing environment variables without needing DEBUG logs. For teams needing controllable verbosity, the standard pattern is to offload complex logic into Twilio Functions or external webhooks called via the Run Function or Make HTTP Request widgets, where application-level logging (DEBUG/TRACE) lives in your own observability stack. The Steps API is also useful for automated post-run analysis or CI gate checks.