Skill 7.3.2
Using logs for troubleshooting
Key Concepts
Use logging when a provider returns an unclear error, when authentication or network calls fail, when an operation hangs, or when Terraform behaves differently from what the plan suggested. Provider logs at DEBUG or TRACE level typically show the API requests and responses.
If Terraform itself crashes (panics), it prints the panic message and a stack trace to the terminal. A bug report should include that output and a TRACE log that reproduces the problem. Logs can contain secrets and personal data, so review them before sharing.