From abac1b96e74d60e03031f2ced3e5adf9706d669f Mon Sep 17 00:00:00 2001 From: Joe Adams Date: Thu, 12 Jun 2025 13:21:14 -0400 Subject: [PATCH] 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 --- collector/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/util.go b/collector/util.go index 7aef9a21..c246aeb4 100644 --- a/collector/util.go +++ b/collector/util.go @@ -29,7 +29,7 @@ func getURL(ctx context.Context, hc *http.Client, log *slog.Logger, u string) ([ resp, err := hc.Do(req) if err != nil { - return nil, fmt.Errorf("failed to get %s: %v", u, err) + return nil, err } defer func() {