From 415fa87e1f29bfd9ed6c176e8014ce563e7f729a Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Fri, 17 Apr 2020 15:31:17 +0200 Subject: [PATCH] log found candicates as well --- chaoskube/chaoskube.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chaoskube/chaoskube.go b/chaoskube/chaoskube.go index a692a1e2..1f0803c7 100644 --- a/chaoskube/chaoskube.go +++ b/chaoskube/chaoskube.go @@ -191,6 +191,8 @@ func (c *Chaoskube) Victims(ctx context.Context) ([]v1.Pod, error) { return []v1.Pod{}, err } + c.Logger.WithField("count", len(pods)).Debug("found candidates") + if len(pods) == 0 { return []v1.Pod{}, errPodNotFound }