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 (#3300)
  • Loading branch information
LaurenceJJones authored Oct 28, 2024
1 parent 9d6ccb0 commit 3ead746
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 3ead746

Please sign in to comment.