Skip to content
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

Allow JSON for TF_LOG_PROVIDER_{provider} configuration #110

Open
timofurrer opened this issue Nov 26, 2022 · 1 comment
Open

Allow JSON for TF_LOG_PROVIDER_{provider} configuration #110

timofurrer opened this issue Nov 26, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@timofurrer
Copy link

terraform-plugin-log version

v0.7.0

Relevant provider source code

n/a

Terraform Configuration Files

n/a

Expected Behavior

From the documentation I would expect that e.g. setting TF_LOG_PROVIDER_{provider}=JSON would result in logs in JSON with TRACE log level.

Actual Behavior

Using TF_LOG_PROVIDER_{provider}=JSON doesn't configure logging at all.

Setting TF_LOG=JSON works as expected though. And I cannot combine them since TF_LOG overrides the others.

Steps to Reproduce

Just set TF_LOG_PROVIDER_{provider}=JSON for any provider when running Terraform.
I'm using it when running provider acceptance tests.

References

@timofurrer timofurrer added the bug Something isn't working label Nov 26, 2022
@timofurrer
Copy link
Author

I would also be open to contributing a fix if someone can point me into the right direction ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant