Skip to content

Commit

Permalink
WIP: more diagnostics for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Park committed Nov 9, 2021
1 parent 4f0f716 commit 8e7902a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sdk/messaging/azservicebus/internal/atom/entity_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httputil"
"strings"
Expand Down Expand Up @@ -198,6 +199,8 @@ func (em *entityManager) Get(ctx context.Context, entityPath string, respObj int
ctx, span := em.startSpanFromContext(ctx, "sb.ATOM.Get")
defer span.End()

log.Printf("==> GET %s", entityPath)

resp, err := em.execute(ctx, http.MethodGet, entityPath, http.NoBody, mw...)
defer CloseRes(ctx, resp)

Expand Down Expand Up @@ -448,6 +451,8 @@ func deserializeBody(resp *http.Response, respObj interface{}) (*http.Response,
return resp, err
}

log.Printf("===> BODY: %s", string(bytes))

if err := xml.Unmarshal(bytes, respObj); err != nil {
// ATOM does this interesting thing where, when something doesn't exist, it gives you back an empty feed
// check:
Expand Down

0 comments on commit 8e7902a

Please sign in to comment.