From 6041db178348598b573c29ad4b1e06bf8de3916b Mon Sep 17 00:00:00 2001 From: Vitaliy Guschin Date: Tue, 12 Mar 2024 15:24:50 +0300 Subject: [PATCH] Fix docker container logging. Signed-off-by: Vitaliy Guschin --- extensions/logs/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/logs/logs.go b/extensions/logs/logs.go index 3cc40e300a..6e5457745b 100644 --- a/extensions/logs/logs.go +++ b/extensions/logs/logs.go @@ -138,7 +138,7 @@ func ClusterDump(suiteName, testName string) { containers := filterContainers(containerList) for _, container := range containers { - _, _, dExitCode, dErr := runner.Run(fmt.Sprintf("docker logs %s > %s/%s.log", container, suitedir, container)) + _, _, dExitCode, dErr := runner.Run(fmt.Sprintf("docker logs %s >& %s/%s.log", container, suitedir, container)) if dExitCode != 0 { logrus.Errorf("An error while getting docker logs. Exit Code: %v", dExitCode)