stop writing pointer to stdout

master
Buddy Sandidge 5 years ago
parent 39e9dcedf0
commit c11bfc0957

@ -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)
}

Loading…
Cancel
Save