From 00c7fb3136b36b77880475ed371d3e0e76076b05 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 28 Oct 2024 12:56:36 +0100 Subject: [PATCH] e2e: log stderror in execCommandInPodAndAllowFail If the command we try to execute fails, log the stdError along with error for better debugging. Signed-off-by: Madhu Rajanna --- e2e/pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/pod.go b/e2e/pod.go index dc03a5a2bce..4113e4334dc 100644 --- a/e2e/pod.go +++ b/e2e/pod.go @@ -324,7 +324,7 @@ func execCommandInPodAndAllowFail(f *framework.Framework, c, ns string, opt *met stdOut, stdErr, err := execWithRetry(f, &podOpt) if err != nil { - framework.Logf("command %s failed: %v", c, err) + framework.Logf("command %s failed: error:%v. stderror:%v", c, err, stdErr) } return stdOut, stdErr