Skip to content

Commit

Permalink
getJson log url+resp.ContentLength
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Jun 7, 2024
1 parent f45a0c8 commit cfb823d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ func getJson(url string, target interface{}, respjson *string) (err error) {
return fmt.Errorf("json.Decoder.Decode: %w", err)
}

log("response body:"+NL+"%s", respBody.String())
log("getJson %s response ContentLength:%d Body:"+NL+"%s", url, resp.ContentLength, respBody.String())
if respjson != nil {
*respjson = respBody.String()
log("respjson:"+NL+"%s", *respjson)
log("getJson %s respjson:"+NL+"%s", url, *respjson)
}

return nil
Expand Down

0 comments on commit cfb823d

Please sign in to comment.