Skip to content

Commit

Permalink
enhance: Remove if log check in one instance that was not needed as t…
Browse files Browse the repository at this point in the history
…he logged items are not resource intensive
  • Loading branch information
LaurenceJJones committed Oct 25, 2024
1 parent 9d6ccb0 commit ebf7c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/apiclient/client_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ func (c *ApiClient) Do(ctx context.Context, req *http.Request, v interface{}) (*
req.Header.Add("User-Agent", c.UserAgent)
}

if log.GetLevel() >= log.DebugLevel {
log.Debugf("[URL] %s %s", req.Method, req.URL)
}
log.Debugf("[URL] %s %s", req.Method, req.URL)

resp, err := c.client.Do(req)
if resp != nil && resp.Body != nil {
Expand Down

0 comments on commit ebf7c8f

Please sign in to comment.