mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
provider/google: Log HTTP requests and responses in DEBUG mode (#14281)
This commit is contained in:
parent
4c8f6d1dc0
commit
192c359131
@ -8,6 +8,7 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/logging"
|
||||
"github.com/hashicorp/terraform/helper/pathorcontents"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
"golang.org/x/oauth2"
|
||||
@ -95,6 +96,8 @@ func (c *Config) loadAndValidate() error {
|
||||
}
|
||||
}
|
||||
|
||||
client.Transport = logging.NewTransport("Google", client.Transport)
|
||||
|
||||
versionString := terraform.VersionString()
|
||||
userAgent := fmt.Sprintf(
|
||||
"(%s %s) Terraform/%s", runtime.GOOS, runtime.GOARCH, versionString)
|
||||
|
Loading…
Reference in New Issue
Block a user