Skip to content

Commit

Permalink
Update debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SBGoods committed Jun 26, 2024
1 parent 5a20574 commit 37ba2ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/basetypes/float32_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"math/big"

"github.com/hashicorp/terraform-plugin-go/tftypes"
"github.com/hashicorp/terraform-plugin-log/tflog"

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/internal/logging"
)

// Float32Typable extends attr.Type for float32 types.
Expand Down Expand Up @@ -80,9 +80,9 @@ func (t Float32Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (
}

f, accuracy := bigF.Float32()
tflog.Debug(ctx, fmt.Sprintf("Float32 value %f, accuracy %d", f, accuracy))
logging.FrameworkDebug(ctx, fmt.Sprintf("Float32Type ValueFromTerraform Float32 value %f, accuracy %d", f, accuracy))
f64, f64accuracy := bigF.Float64()
tflog.Debug(ctx, fmt.Sprintf("Float64 value %f, accuracy %d", f64, f64accuracy))
logging.FrameworkDebug(ctx, fmt.Sprintf("Float32Type ValueFromTerraform Float64 value %f, accuracy %d", f64, f64accuracy))

// Underflow
// Reference: https://pkg.go.dev/math/big#Float.Float32
Expand Down

0 comments on commit 37ba2ff

Please sign in to comment.