-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF_LOG=trace terraform apply does not print request logs #183
Comments
newrelic.config.Debug is set to logging.IsDebugOrHigher() if config.Debug is true then RestyClient r.setDebug(true) So RestyClient r.setDebug(true) is called. Yet request logs are not appearing |
@morganchristiansson what you're experiencing is due to the issue described in this thread: Terraform core and the providers are separate processes communicating via RPC, and the logs from the SDK are not making their way through to the console when using the I have personally had luck using the Charles web proxy as described in the thread above to inspect at the HTTP layer. |
Ok makes sense. However the pagerduty provider was printing http requests successfully in the same run.. haven't looked at why. |
Here's why! Looks like this is achievable after all. I will put a quick PR in. |
Blocked on merging paultyng/go-newrelic#76. |
Targeting v1.7.0 for a fix. |
Fixed in #228 per paultyng/go-newrelic#76 |
When running
TF_LOG=trace terraform apply
requests logs are not printed.When doing the same when running acceptance tests they are however.
I had a look in source code and newrelic-go dependency and it seems like it should be output when TF_LOG=trace is set
Terraform Version
Terraform v0.12.12
Affected Resource(s)
provider.newrelic
Expected Behavior
HTTP request and responses be output to console to view.
Actual Behavior
HTTP requests are not in output. And because requests are using https it's the requests are not easily available for debug.
Steps to Reproduce
TF_LOG=trace terraform apply
The text was updated successfully, but these errors were encountered: