Skip to content

Commit abac1b9

Browse files
committed
Do not log input URL string
The error itself already has the sanitized URL so there is no need to log the sensitive input string. Signed-off-by: Joe Adams <github@joeadams.io>
1 parent 46721e1 commit abac1b9

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)