@@ -17,6 +17,7 @@ import (
1717 "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
1818 "github.com/hashicorp/terraform-plugin-framework/schema/validator"
1919 "github.com/hashicorp/terraform-plugin-framework/types"
20+ "github.com/hashicorp/terraform-plugin-log/tflog"
2021 "github.com/openziti/edge-api/rest_model"
2122 "github.com/rs/zerolog/log"
2223 "github.com/tidwall/gjson"
@@ -196,6 +197,7 @@ func (r *serviceEdgeRouterPolicyResource) Create(ctx context.Context, req resour
196197func (r * serviceEdgeRouterPolicyResource ) Read (ctx context.Context , req resource.ReadRequest , resp * resource.ReadResponse ) {
197198 // Get current state
198199 var state serviceEdgeRouterPolicyResourceModel
200+ tflog .Debug (ctx , "Reading Service Edge Router Policy" )
199201 diags := req .State .Get (ctx , & state )
200202 resp .Diagnostics .Append (diags ... )
201203 if resp .Diagnostics .HasError () {
@@ -277,6 +279,7 @@ func (r *serviceEdgeRouterPolicyResource) Read(ctx context.Context, req resource
277279func (r * serviceEdgeRouterPolicyResource ) Update (ctx context.Context , req resource.UpdateRequest , resp * resource.UpdateResponse ) {
278280 // Retrieve values from plan
279281 var eplan serviceEdgeRouterPolicyResourceModel
282+ tflog .Debug (ctx , "Updating Service Edge Router Policy" )
280283 diags := req .Plan .Get (ctx , & eplan )
281284 resp .Diagnostics .Append (diags ... )
282285 if resp .Diagnostics .HasError () {
@@ -345,6 +348,7 @@ func (r *serviceEdgeRouterPolicyResource) Update(ctx context.Context, req resour
345348func (r * serviceEdgeRouterPolicyResource ) Delete (ctx context.Context , req resource.DeleteRequest , resp * resource.DeleteResponse ) {
346349 // Retrieve values from state
347350 var state serviceEdgeRouterPolicyResourceModel
351+ tflog .Debug (ctx , "Deleting Service Edge Router Policy" )
348352 diags := req .State .Get (ctx , & state )
349353 resp .Diagnostics .Append (diags ... )
350354 if resp .Diagnostics .HasError () {
0 commit comments