fix(target): Quiet proxy server not found logs (#6050)

pull/6052/head
April-May 8 months ago committed by GitHub
parent c2585d8fb8
commit ea6ff60d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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()

Loading…
Cancel
Save