Tone down insignificant discovery error messages (ref #241)

This commit is contained in:
Jakob Borg
2014-09-08 09:14:21 +02:00
parent 0a70e0b7b6
commit 2117d1d035
2 changed files with 10 additions and 9 deletions

View File

@@ -86,6 +86,7 @@ func monitorMain() {
cmd.Process.Kill()
<-exit
return
case err = <-exit:
if err == nil {
// Successfull exit indicates an intentional shutdown
@@ -109,9 +110,6 @@ func copyStderr(stderr io.ReadCloser) {
for {
line, err := br.ReadString('\n')
if err != nil {
if err != io.EOF {
l.Warnln("stderr:", err)
}
return
}
@@ -150,9 +148,6 @@ func copyStdout(stderr io.ReadCloser) {
for {
line, err := br.ReadString('\n')
if err != nil {
if err != io.EOF {
l.Warnln("stdout:", err)
}
return
}