From 140353097e05d799e0cccdd35449c689929fa742 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Thu, 30 Jul 2020 13:05:12 -0400 Subject: [PATCH] added logging --- downloader/downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloader/downloader.go b/downloader/downloader.go index 30e72ee..ed8e6b6 100644 --- a/downloader/downloader.go +++ b/downloader/downloader.go @@ -253,8 +253,8 @@ func run(use string, args []string, withStdErr, withStdOut bool, stopChan stop.C break } defer pool.ReleaseIP(sourceAddress) - args = append(args, "--source-address", sourceAddress) - cmd := exec.Command("youtube-dl", args...) + argsForCommand := append(args, "--source-address", sourceAddress) + cmd := exec.Command("youtube-dl", argsForCommand...) logrus.Printf("Running command youtube-dl %s", strings.Join(args, " ")) var stderr io.ReadCloser