cli: use Writer from app instead of Stdout
It is useful in tests.
This commit is contained in:
parent
bfe3b3d05d
commit
911be78cc7
7 changed files with 96 additions and 93 deletions
|
@ -357,9 +357,9 @@ func startServer(ctx *cli.Context) error {
|
|||
go serv.Start(errChan)
|
||||
go rpcServer.Start(errChan)
|
||||
|
||||
fmt.Println(logo())
|
||||
fmt.Println(serv.UserAgent)
|
||||
fmt.Println()
|
||||
fmt.Fprintln(ctx.App.Writer, logo())
|
||||
fmt.Fprintln(ctx.App.Writer, serv.UserAgent)
|
||||
fmt.Fprintln(ctx.App.Writer)
|
||||
|
||||
var shutdownErr error
|
||||
Main:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue