Some facility for debug logging with debug levels should be available and used #8955

Open
opened 2026-02-21 03:22:41 -05:00 by deekerman · 0 comments
Owner

Originally created by @johnhawkinson on GitHub (Oct 10, 2016).

To aid in maintainability, it should be easy to leave debug printing code in extractors and have it only print when run with some debugging flag, or ideally with multiple debugging levels, ala classic dprintf(level, fmt, ...).

Some discussion of this in here, and @yan12125 suggests a pull request.

I'm pretty sure if I implemented it it wouldn't be very Pythonic, so perhaps it's best to just mention the idea as an issue and leave it for someone else to implement.

Originally created by @johnhawkinson on GitHub (Oct 10, 2016). To aid in maintainability, it should be easy to leave debug printing code in extractors and have it only print when run with some debugging flag, or ideally with multiple debugging levels, ala classic dprintf(level, fmt, ...). Some discussion of this in [here](https://github.com/rg3/youtube-dl/pull/10854/#discussion_r82521447), and @yan12125 suggests a pull request. I'm pretty sure if I implemented it it wouldn't be very Pythonic, so perhaps it's best to just mention the idea as an issue and leave it for someone else to implement.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#8955
No description provided.