From 4109e420d274b95e4ab246b884c8552db6657c42 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Wed, 30 Aug 2023 14:54:30 -0700 Subject: [PATCH] Remove ocsp debug log on reload Signed-off-by: Waldemar Quevedo --- server/ocsp_peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ocsp_peer.go b/server/ocsp_peer.go index 0ddcc0c80f..0e424a4a9c 100644 --- a/server/ocsp_peer.go +++ b/server/ocsp_peer.go @@ -139,13 +139,13 @@ func (s *Server) plugTLSOCSPPeer(config *tlsConfigKind) (*tls.Config, bool, erro if config == nil || config.tlsConfig == nil { return nil, false, errors.New(certidp.ErrUnableToPlugTLSEmptyConfig) } - s.Debugf(certidp.DbgPlugTLSForKind, config.kind) kind := config.kind isSpoke := config.isLeafSpoke tcOpts := config.tlsOpts if tcOpts == nil || tcOpts.OCSPPeerConfig == nil || !tcOpts.OCSPPeerConfig.Verify { return nil, false, nil } + s.Debugf(certidp.DbgPlugTLSForKind, config.kind) // peer is a tls client if kind == kindStringMap[CLIENT] || (kind == kindStringMap[LEAF] && !isSpoke) { if !tcOpts.Verify {