From b4ea4a5a36b0a68e070b34f54a454b082977987f Mon Sep 17 00:00:00 2001 From: Ash <159829404+hedge-sparrow@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:42:43 +0000 Subject: [PATCH] Update pkg/collect/runner.go Co-authored-by: Evans Mungai --- pkg/collect/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collect/runner.go b/pkg/collect/runner.go index e26dd583b..abde4c62a 100644 --- a/pkg/collect/runner.go +++ b/pkg/collect/runner.go @@ -351,7 +351,7 @@ func getContainerLogsInternal(ctx context.Context, client kubernetes.Interface, if err != nil { return nil, err } - if strings.Contains(string(logs), "Internal Error") { + if bytes.Contains(logs, []byte("Internal Error")) { return nil, fmt.Errorf("Fetched log contains \"Internal Error\": %q", string(logs)) }