hashicorp / terraform-provider-awscc

Terraform AWS Cloud Control provider
https://registry.terraform.io/providers/hashicorp/awscc/latest/docs
Mozilla Public License 2.0
259 stars 120 forks source link

Support `terraform-plugin-log` #46

Open ewbankkit opened 3 years ago

ewbankkit commented 3 years ago

Description

Relates https://github.com/hashicorp/terraform-plugin-framework/issues/63. As of v0.1.0 terraform-plugin-framework does not support terraform-plugin-log.

Definition of Done

Once upstream support is added, enhance this provider and remove calls to log.Printf.

ewbankkit commented 3 years ago

Temporarily, at the entry to each CRUD handler in the Generic Resource, we have:

ctx = tflog.New(ctx, tflog.WithStderrFromInit(), tflog.WithLevel(hclog.Trace), tflog.WithoutLocation())
breathingdust commented 3 years ago

Upstream support in the terraform-plugin-framework is likely to arrive within the next four weeks.