From 923813ac4820044723814b777e4a39cb6eb273fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Nasiadka?= Date: Thu, 9 Sep 2021 11:30:38 +0200 Subject: [PATCH] CI: Fix get_logs.sh docker logs output Currently the logs get printed in Zuul job stdout and only a small portion of them is redirected to a file - this patch changes that to send all output to desired files. Change-Id: I45e937ec7c102e89edee20679b8959bf7f6c7152 --- roles/kayobe-diagnostics/files/get_logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kayobe-diagnostics/files/get_logs.sh b/roles/kayobe-diagnostics/files/get_logs.sh index b450a2c8d..fea42362f 100644 --- a/roles/kayobe-diagnostics/files/get_logs.sh +++ b/roles/kayobe-diagnostics/files/get_logs.sh @@ -72,7 +72,7 @@ copy_logs() { (docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt for container in $(docker ps -a --format "{{.Names}}"); do - docker logs --tail all ${container} > ${LOG_DIR}/docker_logs/${container}.txt + docker logs --tail all ${container} &> ${LOG_DIR}/docker_logs/${container}.txt done # Bifrost: grab config files and logs from the container.