Don't write on stdout too

This commit is contained in:
nemunaire 2018-10-20 02:06:20 +02:00
parent 4ff49b9b45
commit bd23918d34

View File

@ -6,7 +6,6 @@ import (
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"os"
) )
type MessagePart struct { type MessagePart struct {
@ -68,7 +67,7 @@ func (n NotifyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if err != nil { if err != nil {
fmt.Printf("error: %v\n", err) fmt.Printf("error: %v\n", err)
} else { } else {
os.Stdout.Write(output) //os.Stdout.Write(output)
SpeakerPipe.Write(output) SpeakerPipe.Write(output)
} }
} }