Skip to content

Commit 79d19b8

Browse files
committed
added logs for debugging
1 parent 7b2e422 commit 79d19b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

npm/pkg/dataplane/dataplane_windows.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ func (dp *DataPlane) getLocalPodEndpoints() ([]*hcn.HostComputeEndpoint, error)
351351
klog.Infof("npm lite is enabled: %+v", dp.EnableNPMLite) // Will remove after debugging
352352
timer := metrics.StartNewTimer()
353353
endpoints, err := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQuery.query)
354+
for _, endpoint1 := range endpoints {
355+
klog.Infof("ID: %s, Name: %+v", endpoint1.Id, endpoint1.Name)
356+
} // Debugging
354357
klog.Infof("There are %+v endpoints with state: attached sharing", len(endpoints)) // Will remove after debugging
355358
metrics.RecordListEndpointsLatency(timer)
356359
if err != nil {
@@ -362,6 +365,9 @@ func (dp *DataPlane) getLocalPodEndpoints() ([]*hcn.HostComputeEndpoint, error)
362365
timer = metrics.StartNewTimer()
363366
endpointsAttached, err := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQueryL1VH.query)
364367
klog.Infof("There are %+v endpoints with state: attached", len(endpointsAttached)) // Will remove after debugging
368+
for _, endpoint := range endpointsAttached {
369+
klog.Infof("ID: %s, Name: %+v", endpoint.Id, endpoint.Name)
370+
} // Debugging
365371
metrics.RecordListEndpointsLatency(timer)
366372
if err != nil {
367373
metrics.IncListEndpointsFailures()

0 commit comments

Comments
 (0)