From 0694c0da819ef8051fd99da8ada60180a577a44f Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Wed, 17 Jun 2015 17:29:00 -0700 Subject: [PATCH] Show requests made to AWS API in debug mode Signed-off-by: Nathan LeClaire --- drivers/amazonec2/amz/ec2.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/amazonec2/amz/ec2.go b/drivers/amazonec2/amz/ec2.go index 459671086b..44a342bb16 100644 --- a/drivers/amazonec2/amz/ec2.go +++ b/drivers/amazonec2/amz/ec2.go @@ -9,6 +9,8 @@ import ( "net/url" "strconv" + "github.com/docker/machine/log" + "github.com/docker/machine/utils" awsauth "github.com/smartystreets/go-aws-auth" ) @@ -148,6 +150,8 @@ func NewEC2(auth Auth, region string) *EC2 { func (e *EC2) awsApiCall(v url.Values) (*http.Response, error) { v.Set("Version", "2014-06-15") + log.Debug("Making AWS API call with values:") + utils.DumpVal(v) client := &http.Client{} finalEndpoint := fmt.Sprintf("%s?%s", e.Endpoint, v.Encode()) req, err := http.NewRequest("GET", finalEndpoint, nil)