Skip to content

Commit

Permalink
Log client requests and responses
Browse files Browse the repository at this point in the history
  • Loading branch information
almirmcunhajr committed Jul 3, 2024
1 parent accd8d9 commit 97c8720
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion azuredevops/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
})

Expand Down

0 comments on commit 97c8720

Please sign in to comment.