From df43c9fc2140a28bfc641b823744ffdec5b9e147 Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Thu, 29 Dec 2022 11:17:54 +1300 Subject: [PATCH] If no pods are selected for log collector, do not wait for timeout (#932) Fixes: #931 --- pkg/collect/logs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/collect/logs.go b/pkg/collect/logs.go index fd1c3cd40..30441654b 100644 --- a/pkg/collect/logs.go +++ b/pkg/collect/logs.go @@ -117,6 +117,8 @@ func (c *CollectLogs) Collect(progressChan chan<- interface{}) (CollectorResult, } } } + } else { + resultCh <- output } }()