Skip to content

Commit b1a8189

Browse files
committed
fix(core): debug json decode
1 parent 141dcf4 commit b1a8189

File tree

1 file changed

+1
-2
lines changed
  • marketing-api/core/internal/debug

1 file changed

+1
-2
lines changed

marketing-api/core/internal/debug/debug.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ func DecodeJSONHttpResponse(r io.Reader, v interface{}, debug bool) ([]byte, err
9595
bs := buf.Bytes()
9696
debugBuf := util.GetBufferPool()
9797
defer util.PutBufferPool(debugBuf)
98-
debugBuf.Grow(len(bs) + 300)
9998
if err := json.Indent(buf, bs, "", "\t"); err != nil {
10099
return bs, err
101100
}
102101

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

0 commit comments

Comments
 (0)