From 97c8720e4e8c69c1e75bf53be982a8c3aca6417f Mon Sep 17 00:00:00 2001 From: Almir Cunha Date: Wed, 3 Jul 2024 11:57:15 -0300 Subject: [PATCH] Log client requests and responses --- azuredevops/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azuredevops/client.go b/azuredevops/client.go index 6c8643e..00802e0 100644 --- a/azuredevops/client.go +++ b/azuredevops/client.go @@ -127,7 +127,7 @@ func (client *Client) Send(ctx context.Context, log.Println("Sending request", map[string]string{ "URL": req.URL.String(), - "method": req.Method, + "Method": req.Method, }) resp, err := client.SendRequest(req) @@ -137,6 +137,7 @@ func (client *Client) Send(ctx context.Context, log.Println("Received response", map[string]string{ "URL": resp.Request.URL.String(), + "Method": resp.Request.Method, "Status": resp.Status, })