Remove ocsp debug log on reload

Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
Waldemar Quevedo
2023-08-30 14:54:30 -07:00
parent d6e7106eee
commit 4109e420d2

View File

@@ -139,13 +139,13 @@ func (s *Server) plugTLSOCSPPeer(config *tlsConfigKind) (*tls.Config, bool, erro
if config == nil || config.tlsConfig == nil { if config == nil || config.tlsConfig == nil {
return nil, false, errors.New(certidp.ErrUnableToPlugTLSEmptyConfig) return nil, false, errors.New(certidp.ErrUnableToPlugTLSEmptyConfig)
} }
s.Debugf(certidp.DbgPlugTLSForKind, config.kind)
kind := config.kind kind := config.kind
isSpoke := config.isLeafSpoke isSpoke := config.isLeafSpoke
tcOpts := config.tlsOpts tcOpts := config.tlsOpts
if tcOpts == nil || tcOpts.OCSPPeerConfig == nil || !tcOpts.OCSPPeerConfig.Verify { if tcOpts == nil || tcOpts.OCSPPeerConfig == nil || !tcOpts.OCSPPeerConfig.Verify {
return nil, false, nil return nil, false, nil
} }
s.Debugf(certidp.DbgPlugTLSForKind, config.kind)
// peer is a tls client // peer is a tls client
if kind == kindStringMap[CLIENT] || (kind == kindStringMap[LEAF] && !isSpoke) { if kind == kindStringMap[CLIENT] || (kind == kindStringMap[LEAF] && !isSpoke) {
if !tcOpts.Verify { if !tcOpts.Verify {