Skip to content

Commit ea6ff60

Browse files
authored
fix(target): Quiet proxy server not found logs (#6050)
1 parent c2585d8 commit ea6ff60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/target/repository_proxy_server_certificate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func fetchTargetProxyServerCertificate(ctx context.Context, r db.Reader, w db.Wr
102102

103103
// If a cert is not found, this target type does not support proxy server certificates/ it was not generated during target creation.
104104
if targetCert.Certificate == nil {
105-
return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found")
105+
return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent())
106106
}
107107

108108
return maybeRegenerateCert(ctx, targetCert, w, wrapper, sessionMaxSeconds)
@@ -135,7 +135,7 @@ func fetchTargetAliasProxyServerCertificate(ctx context.Context, r db.Reader, w
135135
}
136136

137137
if targetCert.Certificate == nil {
138-
return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found")
138+
return nil, errors.New(ctx, errors.RecordNotFound, op, "target proxy server certificate not found", errors.WithoutEvent())
139139
}
140140

141141
aliasCert := allocTargetAliasProxyCertificate()

0 commit comments

Comments
 (0)