Skip to content

Commit be9e412

Browse files
committed
Fix logging in http client
1 parent e14423b commit be9e412

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httpclient.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func CreateCrawlerHTTPClient(getAuth GetAuthFn, ua string) *http.Client {
6969

7070
func CreateRetryingHTTPClient(getAuth GetAuthFn, ua string) *http.Client {
7171
rc := retryablehttp.NewClient()
72+
rc.Logger = slog.Default() // nil to disable logging
7273

7374
// Fail a little quicker, as the caller might block until
7475
// the request is done.

0 commit comments

Comments
 (0)