From d35167b878377a401ca5f30e2dff29ce226d5cd5 Mon Sep 17 00:00:00 2001 From: ppom <> Date: Wed, 18 Oct 2023 12:00:00 +0200 Subject: [PATCH] Remove stderr reading (caused bug) --- app/daemon.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/daemon.go b/app/daemon.go index 252de72..4aa795d 100644 --- a/app/daemon.go +++ b/app/daemon.go @@ -23,22 +23,10 @@ func cmdStdout(commandline []string) chan *string { if err != nil { logger.Fatalln("couldn't open stdout on command:", err) } - stderr, err := cmd.StderrPipe() - if err != nil { - logger.Fatalln("couldn't open stderr on command:", err) - } if err := cmd.Start(); err != nil { logger.Fatalln("couldn't start command:", err) } defer stdout.Close() - defer stderr.Close() - func() { - errscan := bufio.NewScanner(stderr) - for errscan.Scan() { - line := errscan.Text() - logger.Println(logger.WARN, "stderr:", line) - } - }() scanner := bufio.NewScanner(stdout) for scanner.Scan() { line := scanner.Text()