Skip to content

Commit e69df34

Browse files
Copilotmawasile
andcommitted
Add debug log statement for context cancellation in polling
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
1 parent 0b2b467 commit e69df34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/services/tenant_isolation_policy/api_tenant_isolation_policy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ func (client *Client) doWaitForLifecycleOperationStatus(ctx context.Context, res
190190
// Check context before sleep for belt-and-suspenders safety
191191
select {
192192
case <-ctx.Done():
193+
tflog.Debug(ctx, "Polling cancelled due to context cancellation")
193194
return nil, fmt.Errorf("polling cancelled: %w", ctx.Err())
194195
default:
195196
// Wait before polling again (honors context cancellation)

0 commit comments

Comments
 (0)