From 3d89c760a87d1a6b4134160b6c60965205fe2a5c Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Wed, 3 Jan 2024 14:38:37 +0100 Subject: [PATCH] exec: forward command output to stderr instead of stdout on --show-task-output When "--show-task-output" is passed to "baur run", the command output is now written to stderr instead of stdout. Stderr fits better the output is for diagnostic purposes. --- internal/command/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/run.go b/internal/command/run.go index 0a03936b..28aa4bc7 100644 --- a/internal/command/run.go +++ b/internal/command/run.go @@ -155,7 +155,7 @@ func (c *runCmd) run(_ *cobra.Command, args []string) { c.taskRunnerRoutinePool = routines.NewPool(c.taskRunnerGoRoutines) c.taskRunner = baur.NewTaskRunner() if c.showOutput && !verboseFlag { - c.taskRunner.LogFn = stdout.Printf + c.taskRunner.LogFn = stderr.Printf } c.dockerClient, err = docker.NewClient(log.StdLogger.Debugf)