Skip to content

Commit

Permalink
Merge pull request #3514 from VitalyGushin/fix-docker-container-logging
Browse files Browse the repository at this point in the history
Fix docker container logging.
  • Loading branch information
denis-tingaikin authored Mar 12, 2024
2 parents 83f3cb0 + 6041db1 commit 8da4b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8da4b0e

Please sign in to comment.