From ea6ff60d1e563002637e0657debeb915e5eb4e9f Mon Sep 17 00:00:00 2001 From: April-May <18632637+AprilMay0@users.noreply.github.com> Date: Fri, 12 Sep 2025 14:55:39 -0700 Subject: [PATCH] fix(target): Quiet proxy server not found logs (#6050) --- internal/target/repository_proxy_server_certificate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/target/repository_proxy_server_certificate.go b/internal/target/repository_proxy_server_certificate.go index 99e9a501be..e9b62bc33a 100644 --- a/internal/target/repository_proxy_server_certificate.go +++ b/internal/target/repository_proxy_server_certificate.go @@ -102,7 +102,7 @@ func fetchTargetProxyServerCertificate(ctx context.Context, r db.Reader, w db.Wr // If a cert is not found, this target type does not support proxy server certificates/ it was not generated during target creation. if targetCert.Certificate == nil { - return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found") + return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent()) } return maybeRegenerateCert(ctx, targetCert, w, wrapper, sessionMaxSeconds) @@ -135,7 +135,7 @@ func fetchTargetAliasProxyServerCertificate(ctx context.Context, r db.Reader, w } if targetCert.Certificate == nil { - return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found") + return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent()) } aliasCert := allocTargetAliasProxyCertificate()