Skip to content

Commit

Permalink
Merge pull request #1 from inloco/incident-167
Browse files Browse the repository at this point in the history
Add debug log
  • Loading branch information
almirmcunhajr authored Jul 1, 2024
2 parents d7fcade + 82b4249 commit 9dd8704
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azuredevops/taskagent/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"net/url"
"strconv"
"strings"
"log"
)

var ResourceAreaId, _ = uuid.Parse("a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd")
Expand Down Expand Up @@ -1412,6 +1413,11 @@ func (client *ClientImpl) GetMessage(ctx context.Context, args GetMessageArgs) (
if args.LastMessageId != nil {
queryParams.Add("lastMessageId", strconv.FormatUint(*args.LastMessageId, 10))
}

runner := ctx.Value("runner").(string)
log.Printf("Getting message for runner %s with query params %s\n", runner, queryParams.Encode())
log.Printf("Getting message for runner %s with route values %s\n", runner, routeValues)

locationId, _ := uuid.Parse("c3a054f6-7a8a-49c0-944e-3a8e5d7adfd7")
resp, err := client.Client.Send(ctx, http.MethodGet, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
if err != nil {
Expand Down

0 comments on commit 9dd8704

Please sign in to comment.