added logging

This commit is contained in:
Mark Beamer Jr 2020-07-30 13:05:12 -04:00 committed by Alex Grintsvayg
parent a1caea4a28
commit 140353097e
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -253,8 +253,8 @@ func run(use string, args []string, withStdErr, withStdOut bool, stopChan stop.C
break break
} }
defer pool.ReleaseIP(sourceAddress) defer pool.ReleaseIP(sourceAddress)
args = append(args, "--source-address", sourceAddress) argsForCommand := append(args, "--source-address", sourceAddress)
cmd := exec.Command("youtube-dl", args...) cmd := exec.Command("youtube-dl", argsForCommand...)
logrus.Printf("Running command youtube-dl %s", strings.Join(args, " ")) logrus.Printf("Running command youtube-dl %s", strings.Join(args, " "))
var stderr io.ReadCloser var stderr io.ReadCloser