Skip to content

Commit 078972d

Browse files
authored
Merge pull request #1051 from sysadmind/rm-unsanitized-url
Do not log input URL string
2 parents dbe29fe + abac1b9 commit 078972d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func getURL(ctx context.Context, hc *http.Client, log *slog.Logger, u string) ([
2929

3030
resp, err := hc.Do(req)
3131
if err != nil {
32-
return nil, fmt.Errorf("failed to get %s: %v", u, err)
32+
return nil, err
3333
}
3434

3535
defer func() {

0 commit comments

Comments
 (0)