From 1a5c90440846f5f5d79d9389858be66f808126ce Mon Sep 17 00:00:00 2001 From: Moshe Kabala Date: Mon, 21 Aug 2023 19:24:02 +0300 Subject: [PATCH] Not using stdout directly for logging --- pkg/runtimes/docker/container.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/runtimes/docker/container.go b/pkg/runtimes/docker/container.go index 5236f6ae9..297020da7 100644 --- a/pkg/runtimes/docker/container.go +++ b/pkg/runtimes/docker/container.go @@ -26,7 +26,6 @@ import ( "context" "fmt" "io" - "os" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" @@ -117,7 +116,7 @@ func pullImage(ctx context.Context, docker client.APIClient, image string) error // in debug mode (--verbose flag set), output pull progress var writer io.Writer = io.Discard if l.Log().GetLevel() == logrus.DebugLevel { - writer = os.Stdout + writer = l.Log().Out } _, err = io.Copy(writer, resp) if err != nil {