Skip to content

Commit

Permalink
fix(log): incorrectly writing stderr to INFO and vice versa. Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 2, 2017
1 parent 4d838dc commit bcdf7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/service_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}()

Expand Down

0 comments on commit bcdf7b2

Please sign in to comment.