Skip to content

Commit 4dfff18

Browse files
authored
resourceIdentity: change identity debug from fmt->log (#15283)
2 parents 2acb0ef + 3e3dcd1 commit 4dfff18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mmv1/templates/terraform/resource.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ func resource{{ $.ResourceName -}}Read(d *schema.ResourceData, meta interface{})
732732
}
733733
{{- end }}
734734
} else {
735-
fmt.Printf("[DEBUG] identity not set: %s", err)
735+
log.Printf("[DEBUG] identity not set: %s", err)
736736
}
737737
{{- end }}
738738
{{ end -}}

mmv1/third_party/terraform/tpgresource/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func ParseImportId(idRegexes []string, d TerraformResourceData, config *transpor
2727
}
2828
identity, err := d.Identity()
2929
if identity == nil {
30-
fmt.Printf("[DEBUG] identity not set: %s", err)
30+
log.Printf("[DEBUG] identity not set: %s", err)
3131
}
3232
if fieldValues := re.FindStringSubmatch(d.Id()); fieldValues != nil {
3333
log.Printf("[DEBUG] matching ID %s to regex %s.", d.Id(), idFormat)

0 commit comments

Comments
 (0)