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

pass --loglevel to plugins as TFLINT_LOG #1070

Merged
merged 1 commit into from Feb 24, 2021
Merged

Conversation

bendrucker
Copy link
Member

Per terraform-linters/tflint-ruleset-aws#69 (comment), when users set a log level via --loglevel, plugin processes do not reflect this input. This passes it via TFLINT_LOG.

Longer term, removing --loglevel altogether would prevent this from being an issue. Terraform does not have a log level flag, perhaps in part in recognition that environment variables fit better with external plugin processes.

Copy link
Member

@wata727 wata727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Longer term, removing --loglevel altogether would prevent this from being an issue. Terraform does not have a log level flag, perhaps in part in recognition that environment variables fit better with external plugin processes.

Agreed. Initially, I didn't understand this concern, so it was implemented in #844, but for this reason, I don't think there's any reason to continue to support it.

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

Successfully merging this pull request may close these issues.

None yet

2 participants