Skip to content

Commit

Permalink
api: Gate status error logs with logs.VERBOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Aug 22, 2022
1 parent d7db15d commit 61ac7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ func checkResponseError(resp *http.Response) error {
return nil
}
body, err := ioutil.ReadAll(resp.Body)
glog.Errorf("Status error from Livepeer API method=%s url=%s status=%d body=%q", resp.Request.Method, resp.Request.URL, resp.StatusCode, string(body))
glog.V(logs.VERBOSE).Infof("Status error from Livepeer API method=%s url=%s status=%d body=%q", resp.Request.Method, resp.Request.URL, resp.StatusCode, string(body))
if err != nil {
return fmt.Errorf("failed reading error response (%s): %w", resp.Status, err)
}
Expand Down

0 comments on commit 61ac7fc

Please sign in to comment.