mirror of
https://github.com/nxshock/promodj.git
synced 2025-07-01 23:53:35 +05:00
Log encoder messages
This commit is contained in:
parent
65c1ba95c0
commit
fbb8c376d4
1 changed files with 6 additions and 2 deletions
|
@ -4,11 +4,12 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"os/exec"
|
||||
|
||||
"gopkg.in/djherbis/buffer.v1"
|
||||
"github.com/djherbis/nio/v3"
|
||||
"gopkg.in/djherbis/buffer.v1"
|
||||
)
|
||||
|
||||
func stream(url string, w http.ResponseWriter) error {
|
||||
|
@ -47,7 +48,10 @@ func encode(url string, w io.Writer) error {
|
|||
}
|
||||
|
||||
go func() {
|
||||
cmd.Wait()
|
||||
err := cmd.Wait()
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
}()
|
||||
|
||||
buf := buffer.New(int64(config.BufferSize) * 1024 * 1024)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue