Open miloofcroton opened 2 years ago
There doesn't seem to be an existing option to silence these logs, no, so you would need to modify the plugin yourself. Just edit the init.py file and find all the places where a DeDRMError
is raised. Removing these (and replacing them with a return
or something) would probably get rid of most of these error logs.
I think the simpler answer for me is to just pipe stderr to /dev/null.
Yeah, that works as well, if you don't want to / need to see any of the other potential error messages from the plugin.
I'm using DeDRM in a script that runs on a large number of ebooks, which might be epub or a DRMed format. If it's not DRM, I get very loud error logs, which obfuscate useful errors for me.
As an example, for a single file:
Is there anything that can be done about this? Maybe create an option to suppress all errors (the opposite of verbose mode)?