Skip to content

Commit

Permalink
Add debug logs to DSWP
Browse files Browse the repository at this point in the history
  • Loading branch information
jsafrane committed Feb 23, 2023
1 parent 4dd8877 commit 40ffc8e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@ func (dswp *desiredStateOfWorldPopulator) findAndRemoveDeletedPods() {
volumeToMount.PodName, volumeToMount.VolumeName)
dswp.deleteProcessedPod(volumeToMount.PodName)
}
go func() {
dswp.pods.Lock()
defer dswp.pods.Unlock()
klog.Infof("JSAF: processed pods size: %v", len(dswp.pods.processedPods))
for k, v := range dswp.pods.processedPods {
klog.Infof("JSAF: processed pod %v: %v", k, v)
}
}()

podsWithError := dswp.desiredStateOfWorld.GetPodsWithErrors()
for _, podName := range podsWithError {
Expand Down

0 comments on commit 40ffc8e

Please sign in to comment.