diff --git a/lib/app/app.go b/lib/app/app.go index 8afea39..a9c4906 100644 --- a/lib/app/app.go +++ b/lib/app/app.go @@ -118,7 +118,7 @@ func (a *App) ActionPrint(_ *cli.Context) error { if err != nil { return err } - fmt.Print(a.Out, node.Stringify()) + fmt.Fprint(a.Out, node.Stringify()) return nil } @@ -126,7 +126,7 @@ func (a *App) ActionPrint(_ *cli.Context) error { func (a *App) ActionMetrics(ctx *cli.Context) error { addr := ctx.String("http") http.HandleFunc("/metrics", a.HandleMetrics) - log.Println(a.Out, "listen on: "+addr) + log.Println("listen on: " + addr) return http.ListenAndServe(addr, nil) }