Skip to content

Commit

Permalink
Make function private
Browse files Browse the repository at this point in the history
  • Loading branch information
Beppe Catanese committed Dec 9, 2024
1 parent e7d36bf commit 29a6db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func SendAPIRequest(
return httpResponse, err
}

c.LogOnError(httpResponse)
c.logOnError(httpResponse)

if httpResponse.StatusCode >= 300 {
newErr := NewAPIError(body, httpResponse.Status)
Expand Down Expand Up @@ -231,7 +231,7 @@ func (c *Client) CallAPI(request *http.Request) (*http.Response, error) {

// LogOnError log response body when an error occurs
// the type of error being logged depends on the Configuration
func (c *Client) LogOnError(httpResponse *http.Response) {
func (c *Client) logOnError(httpResponse *http.Response) {
if c.Cfg.Log3XXError {
if httpResponse.StatusCode >= 300 && httpResponse.StatusCode < 400 {
fmt.Println(httpResponse.Body)
Expand Down

0 comments on commit 29a6db5

Please sign in to comment.