about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-11-29 03:55:49 +0700
committerSergey M․ <dstftw@gmail.com>2020-11-29 04:04:06 +0700
commit9585b376db8cb0a3f0e7a866e5d64b351fb6ecf7 (patch)
tree95b7c5264acf477be3037fe070ce413283a34e2d /youtube_dl/YoutubeDL.py
parentf04cfe24e0554ca7e08db94ef138d44d22493af0 (diff)
downloadyoutube-dl-9585b376db8cb0a3f0e7a866e5d64b351fb6ecf7.tar.gz
youtube-dl-9585b376db8cb0a3f0e7a866e5d64b351fb6ecf7.tar.xz
youtube-dl-9585b376db8cb0a3f0e7a866e5d64b351fb6ecf7.zip
[YoutubeDL] Write static debug to stderr and respect quiet for dynamic debug (closes #14579, closes #22593)
TODO: logging and verbosity needs major refactoring (refs #10894)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 855a73157..fdd68f616 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1610,7 +1610,7 @@ class YoutubeDL(object):
         if req_format is None:
             req_format = self._default_format_spec(info_dict, download=download)
             if self.params.get('verbose'):
-                self.to_stdout('[debug] Default format spec: %s' % req_format)
+                self._write_string('[debug] Default format spec: %s\n' % req_format)
 
         format_selector = self.build_format_selector(req_format)
 
@@ -1871,7 +1871,7 @@ class YoutubeDL(object):
                     for ph in self._progress_hooks:
                         fd.add_progress_hook(ph)
                     if self.params.get('verbose'):
-                        self.to_stdout('[debug] Invoking downloader on %r' % info.get('url'))
+                        self.to_screen('[debug] Invoking downloader on %r' % info.get('url'))
                     return fd.download(name, info)
 
                 if info_dict.get('requested_formats') is not None: