Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Use log package for dump instead of fmt #11

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

hypnoglow
Copy link
Contributor

This allows logging when go-auth0 package is called from
terraform-provider-auth0.

This allows logging when go-auth0 package is called from
terraform-provider-auth0.
@alexkappa
Copy link
Contributor

This is great! I was looking for a way to debug from terraform and was having a hard time. Do you happen to have a link describing the use?

@hypnoglow
Copy link
Contributor Author

https://github.com/hashicorp/go-plugin

Built-in Logging. Any plugins that use the log standard library will have log data automatically sent to the host process. The host process will mirror this output prefixed with the path to the plugin binary. This makes debugging with plugins simple.

I'm not an expert in terraform internals btw, but I think this is the only way to log from plugins.

@alexkappa
Copy link
Contributor

This is excellent, thank you! I'll study this a little more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants