Skip to content

Commit

Permalink
Merge branch 'release/v1.23.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Mar 21, 2024
2 parents e5fa552 + b1a8189 commit 1d0399a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions marketing-api/core/internal/debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ func DecodeJSONHttpResponse(r io.Reader, v interface{}, debug bool) ([]byte, err
bs := buf.Bytes()
debugBuf := util.GetBufferPool()
defer util.PutBufferPool(debugBuf)
debugBuf.Grow(len(bs) + 300)
if err := json.Indent(buf, bs, "", "\t"); err != nil {
return bs, err
}

log.Println(util.StringsJoin("[DEBUG] [API] http response body:\n", string(debugBuf.Bytes())))
log.Println(util.StringsJoin("[DEBUG] [API] http response body:\n", debugBuf.String()))
return nil, nil
}

0 comments on commit 1d0399a

Please sign in to comment.