We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4c4510d + 0c16718 commit 473108cCopy full SHA for 473108c
internal/generator/generator.go
@@ -281,7 +281,7 @@ func (g *generator) generateFromEvents() {
281
time.Sleep(10 * time.Second)
282
break
283
}
284
- if event.Status == "start" || event.Status == "stop" || event.Status == "die" || strings.Index(event.Status, "health_status:") != -1 {
+ if event.Status == "start" || event.Status == "stop" || event.Status == "die" || strings.Contains(event.Status, "health_status:") {
285
log.Printf("Received event %s for container %s", event.Status, event.ID[:12])
286
// fanout event to all watchers
287
for _, watcher := range watchers {
0 commit comments