Skip to content

Commit

Permalink
fix(apk/client): silence request logging (#1497)
Browse files Browse the repository at this point in the history
Applying same solution as in
wolfi-dev/wolfictl#1393 for same problem.

Signed-off-by: Dan Luhring <[email protected]>
  • Loading branch information
luhring authored Jan 25, 2025
1 parent a25294d commit 0b6b8a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apk/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package client
import (
"context"
"fmt"
"io"
"log"
"net/http"
"net/url"

Expand Down Expand Up @@ -35,6 +37,7 @@ func New(httpClient *http.Client) *Client {
httpClient = http.DefaultClient
}
rc := retryablehttp.NewClient()
rc.Logger = log.New(io.Discard, "", 0) // Don't log requests at all.
rc.HTTPClient = httpClient
return &Client{httpClient: rc.StandardClient()}
}
Expand Down

0 comments on commit 0b6b8a0

Please sign in to comment.