diff --git a/pkg/apiclient/client_http.go b/pkg/apiclient/client_http.go index 0240618f535..eeca929ea6e 100644 --- a/pkg/apiclient/client_http.go +++ b/pkg/apiclient/client_http.go @@ -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 {