Skip to content

Commit c1c6da3

Browse files
committed
add log for cidrs
1 parent 6e6e683 commit c1c6da3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
264264
if err != nil {
265265
return nil, nil, errors.Wrapf(err, "failed to parse infraVNETCIDRs")
266266
}
267-
log.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)
267+
fmt.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)
268268

269269
// Get and parse podCIDRs from env
270270
podCIDRs, err := configuration.PodCIDRs()
@@ -275,7 +275,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
275275
if err != nil {
276276
return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
277277
}
278-
log.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)
278+
fmt.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)
279279

280280
// Get and parse serviceCIDRs from env
281281
serviceCIDRs, err := configuration.ServiceCIDRs()
@@ -286,7 +286,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
286286
if err != nil {
287287
return nil, nil, errors.Wrapf(err, "failed to parse serviceCIDRs")
288288
}
289-
log.Printf("Received ServiceCIDRsv4: %v, ServiceCIDRsv6: %v", serviceCIDRsV4, serviceCIDRsV6)
289+
fmt.Printf("Received ServiceCIDRsv4: %v, ServiceCIDRsv6: %v", serviceCIDRsV4, serviceCIDRsV6)
290290

291291
v4IPs = append(v4IPs, infraVNETCIDRsv4...)
292292
v4IPs = append(v4IPs, podCIDRsV4...)

0 commit comments

Comments
 (0)