From 7230b59559bd50b273af46dc8fd2f3d17c02bbbd Mon Sep 17 00:00:00 2001 From: Konstantin Vasin <126960927+k-v1@users.noreply.github.com> Date: Tue, 28 Mar 2023 00:58:44 +0300 Subject: [PATCH] [Build] fix sonic-slave empty build log (#14408) New docker versions use stderr instead of stdout to print info when build image. As a resullt we got empty log files. the fix is to redirect stderr to stdout when build sonic-slave images. --- Makefile.work | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.work b/Makefile.work index 8d3236adf3..40c73dc089 100644 --- a/Makefile.work +++ b/Makefile.work @@ -415,7 +415,7 @@ endif endif -SPLIT_LOG = | tee +SPLIT_LOG = 2>&1 | tee DOCKER_BASE_LOG = $(SLAVE_DIR)/$(SLAVE_BASE_IMAGE)_$(SLAVE_BASE_TAG).log DOCKER_LOG = $(SLAVE_DIR)/$(SLAVE_IMAGE)_$(SLAVE_TAG).log