-
Notifications
You must be signed in to change notification settings - Fork 136
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
Update plugin logging to use tflog #419
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terraform Version
terraform 1.5.7
Affected Resource(s)
Most or all
Repro Steps
TF_LOG_PROVIDER=WARN TF_LOG_PATH=./tf.log terraform plan
tf.log
, notice the events are not shownThe issue is that we are using a deprecated logging pattern, and terraform encourages the use of their
tflog
package instead.Expected Behavior
The log level specified by the provider should be understood correctly by terraform so filtering by log level works, and the user is not presenting with conflicting log levels.
Actual Behavior
We log all events as
INFO
level, while specifying our actual level as a string in the log message.Steps to Reproduce
INFO
, regardless of what the provider specified using thelog
package, followed by the actual log level presented as a string at the beginning of the log message.References
https://developer.hashicorp.com/terraform/plugin/log/writing
The text was updated successfully, but these errors were encountered: