Skip to content

Commit c0ac208

Browse files
authored
increasing log level of certain noisy logs (#186)
1 parent 63d0ab2 commit c0ac208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/resolvers/endpoints.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (r *defaultEndpointsResolver) getIngressRulesPorts(ctx context.Context, pol
225225
var portList []policyinfo.Port
226226
for _, pod := range podList.Items {
227227
portList = append(portList, r.getPortList(pod, ports)...)
228-
r.logger.Info("Got ingress port from pod", "pod", types.NamespacedName{Namespace: pod.Namespace, Name: pod.Name}.String())
228+
r.logger.V(1).Info("Got ingress port from pod", "pod", types.NamespacedName{Namespace: pod.Namespace, Name: pod.Name}.String())
229229
}
230230

231231
// since we pull ports from dst pods, we should deduplicate them
@@ -438,7 +438,7 @@ func (r *defaultEndpointsResolver) getMatchingServiceClusterIPs(ctx context.Cont
438438
})
439439
}
440440
if len(ports) != len(portList) && len(portList) == 0 {
441-
r.logger.Info("Couldn't find matching port for the service", "service", k8s.NamespacedName(&svc))
441+
r.logger.V(1).Info("Couldn't find matching port for the service", "service", k8s.NamespacedName(&svc))
442442
continue
443443
}
444444
networkPeers = append(networkPeers, policyinfo.EndpointInfo{

0 commit comments

Comments
 (0)