From bcdf7b222c414fe9af75b4dc9799777faa3c78fc Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Fri, 2 Jun 2017 13:04:24 +1000 Subject: [PATCH] fix(log): incorrectly writing stderr to INFO and vice versa. Fixes #10 --- daemon/service_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/service_manager.go b/daemon/service_manager.go index e6f436610..e219329bb 100644 --- a/daemon/service_manager.go +++ b/daemon/service_manager.go @@ -132,14 +132,14 @@ func (s *ServiceManager) Start() *exec.Cmd { scanner := bufio.NewScanner(cmdReader) go func() { for scanner.Scan() { - log.Printf("[ERROR] %s\n", scanner.Text()) + log.Printf("[INFO] %s\n", scanner.Text()) } }() scanner2 := bufio.NewScanner(cmdReaderErr) go func() { for scanner2.Scan() { - log.Printf("[INFO] service: %s\n", scanner2.Text()) + log.Printf("[ERROR] service: %s\n", scanner2.Text()) } }()