Skip to content

Commit

Permalink
Send 'Staring component...' output to stderr (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored and AstroProfundis committed Apr 25, 2021
1 parent cd19b75 commit 77c17c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/exec/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func PrepareCommand(p *PrepareCommandParams) (*exec.Cmd, error) {
return nil, err
}
if semver.Compare(selectVer.String(), latestV.String()) < 0 {
fmt.Println(color.YellowString(`Found %[1]s newer version:
fmt.Fprintln(os.Stderr, color.YellowString(`Found %[1]s newer version:
The latest version: %[2]s
Local installed version: %[3]s
Expand Down Expand Up @@ -275,7 +275,7 @@ func launchComponent(ctx context.Context, component string, version utils.Versio
Cmd: c,
}

fmt.Printf("Starting component `%s`: %s\n", component, strings.Join(append([]string{p.Exec}, p.Args...), " "))
fmt.Fprintf(os.Stderr, "Starting component `%s`: %s\n", component, strings.Join(append([]string{p.Exec}, p.Args...), " "))
err = p.Cmd.Start()
if p.Cmd.Process != nil {
p.Pid = p.Cmd.Process.Pid
Expand Down

0 comments on commit 77c17c6

Please sign in to comment.