From ba8f20b4febe210d0d681c22dfb59cdabc4ce29b Mon Sep 17 00:00:00 2001 From: Bradley Falzon Date: Fri, 23 Jun 2017 08:15:53 +0930 Subject: [PATCH] Output logs to stdout instead of stderr Previously logs were sent to the same writer as errors which was using os.Stderr, or the user had the option to discard all logs. This change continues to send errors to os.Stderr, but uses os.Stdout for logs. Users can still discard logs using -silent flag, or redirect output themselves. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8a6b0b4..84f7f65 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func main() { } errs := log.New(os.Stderr, "", 0) - logs := errs + logs := log.New(os.Stdout, "", 0) if *silent { logs = log.New(ioutil.Discard, "", 0) }