From c11bfc0957a709e298c7db4312d57ad374ec65ea Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 1 Oct 2019 18:19:44 -0700 Subject: [PATCH] stop writing pointer to stdout --- lib/app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }