Skip to content

Commit

Permalink
Update verbosity logs in happy path
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Dec 14, 2023
1 parent fe0c4d2 commit 7a6e5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/generator/ingress_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (translator *IngressTranslator) buildTrustChain(logger *zap.SugaredLogger)
logger.Warnf("CA from Secret %s/%s[%s] is invalid and will be ignored: %v",
system.Namespace(), netconfig.ServingRoutingCertName, certificates.CaCertName, err)
} else {
logger.Infof("Adding CA from Secret %s/%s[%s] to trust chain", system.Namespace(), netconfig.ServingRoutingCertName, certificates.CaCertName)
logger.Debugf("Adding CA from Secret %s/%s[%s] to trust chain", system.Namespace(), netconfig.ServingRoutingCertName, certificates.CaCertName)
trustChain = routingCABytes
}
}
Expand All @@ -415,7 +415,7 @@ func (translator *IngressTranslator) buildTrustChain(logger *zap.SugaredLogger)
logger.Warnf("CA bundle from Configmap %s/%s is invalid and will be ignored: %v",
system.Namespace(), cm.Name, err)
} else {
logger.Infof("Adding CA bundle from Configmap %s/%s to trust chain", system.Namespace(), cm.Name)
logger.Debugf("Adding CA bundle from Configmap %s/%s to trust chain", system.Namespace(), cm.Name)
if len(trustChain) > 0 {
// make sure we always have at least one newline between bundles, multiple ones are ok
trustChain = append(trustChain, newline...)
Expand Down

0 comments on commit 7a6e5d0

Please sign in to comment.