Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
"[debug]" line goes in stdout. #14579
Comments
|
This should go away with #10894 implemented. |
|
This bug is still present I believe .. over one year on. I am running the latest Ubuntu version. Ubuntu will not let me upgrade using The following youtube-dl output is interspersed with indented output from my bash script:
The offending line that prints to stdout not stderr is:
This faulty output includes a trailing newline. thanks to the developers and with best wishes, Robbie |
|
Dear maintainers and @yan12125 specifically, may I ask, why this is marked as a feature request? For anyone barely familiar with CLI, it’s obvious, that debug output has nothing to do with stdout, so observed behaviour is highly unexpected. And this unexpected behaviour indeed harms usability: as |
When I do
youtube-dl.exe --no-playlist -v -J -i ANY_YOUTUBE_VIDEO_URL 1>ytdl.stdout.log 2>ytdl.stderr.logFollowing lines are in ytdl.stderr.log:
And ytdl.stdout.log:
Shouldn't the
[debug] Default format spec: bestvideo+bestaudio/bestline be output through stderr, consistent with other [debug] lines?I'm asking this because this behaviour change makes it difficult to capture JSON output in a wrapper program.