From a25aad30c1de2076f7490e837438a28b58686ea3 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 16 Sep 2016 12:00:59 +0200 Subject: [PATCH] Do not print error from GetPodContainers to user Log the error to the dump.log file, but do not bother the user, as she can't act upon that error. --- logs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logs.go b/logs.go index 631a332..da9775f 100644 --- a/logs.go +++ b/logs.go @@ -84,7 +84,8 @@ func GetPodContainers(runner Runner, project, name string) ([]string, error) { if err := runner.Run(cmd, filepath.Join("projects", project, "pods", name, "container-names")); err != nil { return nil, err } - return readSpaceSeparated(&b) + names, err := readSpaceSeparated(&b) + return names, MarkErrorAsIgnorable(err) } // FetchLogs is a task factory for tasks that fetch the logs of a