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

Raise the default log level of TF from WARN to ERROR #1684

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Feb 14, 2024

default:
return hclog.NoLevel
}
return hclog.LevelFromString(os.Getenv(tfLogEnvVar))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a simple refactor to use hclog's own switch statement. It doesn't change any behavior.

@iwahbe iwahbe force-pushed the iwahbe/mirror-tf-log-default-level branch from 965dc1a to dc98ff7 Compare February 15, 2024 00:37
@iwahbe iwahbe enabled auto-merge (squash) February 15, 2024 00:37
@iwahbe iwahbe merged commit 1b8c596 into master Feb 15, 2024
7 checks passed
@iwahbe iwahbe deleted the iwahbe/mirror-tf-log-default-level branch February 15, 2024 00:50
@t0yv0
Copy link
Member

t0yv0 commented Feb 21, 2024

I'm wondering if TF CLI shows messages emitted even against ERROR level at this API by default, something I neglected to check. If TF CLI does not by default emit or react to them that'd be a good argument for Pulumi as well to only have these logs be opt-in.

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

Successfully merging this pull request may close these issues.

opensearch domain warning "ForceNew: No changes for engine_version"
3 participants