Skip to content

Commit f1b8240

Browse files
Remove logging from pod watcher to avoid race conditions. (#1506)
1 parent cb729b8 commit f1b8240

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/logstream/kubelogs.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,13 @@ func (k *kubelogs) watchPods(t test.TLegacy) {
113113
watchedPods.Delete(p.Name)
114114
case watch.Added, watch.Modified:
115115
if watchedPods.Has(p.Name) {
116-
t.Log("Already watching pod", p.Name)
117116
continue
118117
}
119118
if podIsReady(p) {
120-
t.Log("Watching logs for pod: ", p.Name)
121119
watchedPods.Insert(p.Name)
122120
k.startForPod(&eg, p)
123121
continue
124122
}
125-
t.Log("Pod is not yet ready: ", p.Name)
126123
}
127124
}
128125
}()

0 commit comments

Comments
 (0)