Skip to content

Commit a79e44f

Browse files
committed
added logging lines for debugging
1 parent f19fd62 commit a79e44f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

npm/pkg/dataplane/dataplane_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ func (dp *DataPlane) getLocalPodEndpoints() ([]*hcn.HostComputeEndpoint, error)
350350
klog.Info("getting local endpoints")
351351
timer := metrics.StartNewTimer()
352352
endpoints, err := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQuery.query)
353+
klog.Infof("There are %+v endpoints with state: attached sharing", len(endpoints)) // Will remove after debugging
353354
metrics.RecordListEndpointsLatency(timer)
354355
if err != nil {
355356
metrics.IncListEndpointsFailures()
@@ -359,6 +360,7 @@ func (dp *DataPlane) getLocalPodEndpoints() ([]*hcn.HostComputeEndpoint, error)
359360
if dp.EnableNPMLite {
360361
timer = metrics.StartNewTimer()
361362
endpointsAttached, err := dp.ioShim.Hns.ListEndpointsQuery(dp.endpointQueryL1VH.query)
363+
klog.Infof("There are %+v endpoints with state: attached", len(endpointsAttached)) // Will remove after debugging
362364
metrics.RecordListEndpointsLatency(timer)
363365
if err != nil {
364366
metrics.IncListEndpointsFailures()

0 commit comments

Comments
 (0)