aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz <lorenz.kofler@gmail.com>2021-04-16 02:11:35 +0200
committerGitHub <noreply@github.com>2021-04-16 02:11:35 +0200
commit4853c5c8d7c34a828f200a60016e1700f79dabd3 (patch)
treefeb09e5599e26c913f7ff64d779263f0de2ad428
parent95e82fcbfd386c81040006d0c088d0df13d4faf9 (diff)
downloadnoisetorch-4853c5c8d7c34a828f200a60016e1700f79dabd3.tar.gz
noisetorch-4853c5c8d7c34a828f200a60016e1700f79dabd3.zip
Fix not printing errror message
The CLI should print errors to stderr, and not write to the log file.
-rw-r--r--cli.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli.go b/cli.go
index 716678b..b15b330 100644
--- a/cli.go
+++ b/cli.go
@@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
- "log"
"os"
"github.com/lawl/pulseaudio"
@@ -30,7 +29,7 @@ func doCLI(config *config, librnnoise string) {
paClient, err := pulseaudio.NewClient()
if err != nil {
- log.Printf("Couldn't create pulseaudio client: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Couldn't create pulseaudio client: %v\n", err)
os.Exit(1)
}
defer paClient.Close()