Skip to content

Commit

Permalink
remove logging of response body
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanjacobson committed May 15, 2024
1 parent 4249922 commit b83fa35
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"io" // For Go versions before 1.16, use ioutil.ReadAll
"log"
"net/http"
"time"
)
Expand Down Expand Up @@ -58,8 +57,6 @@ func (s *Scraper) RequestAPI(req *http.Request, target interface{}) error {
return err
}

log.Printf("Response Body: %s", string(content))

if resp.StatusCode != http.StatusOK {
return fmt.Errorf("response status %s: %s", resp.Status, content)
}
Expand Down

0 comments on commit b83fa35

Please sign in to comment.