-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include filenames in error logs #574
Comments
For extractor logging messages, you can access the current The potential problem here is that there might be no filename available at that point in time, either for videos downloaded through youtube-dl or when the filename extension couldn't be determined yet. Hence, there is no general solution to this issue. You should've also gotten a logging message after all the downloader failures which does include the filename
|
I see, makes sense. It's just that sometimes there are cases where the downloader times out and it resorts to using a lower quality image (in the case of Twitter) when it doesn't need to. But I guess I could just increase the timeout limit for now. |
Wrap all loggers used by job, extractor, downloader, and postprocessor objects into a (custom) LoggerAdapter that provides access to the underlying job, extractor, pathfmt, and kwdict objects and their properties. __init__() signatures for all downloader and postprocessor classes have been changed to take the current Job object as their first argument, instead of the current extractor or pathfmt. (#574, #575)
Is there a way to include filenames in error logs such that it looks something like this
The default currently looks like this:
I tried a bunch of configuration, but I can't get it to work.
The text was updated successfully, but these errors were encountered: