Thread: debug mechanize
View Single Post
Old 05-12-2020, 12:13 PM   #3
Kleki
Connoisseur
Kleki doesn't litterKleki doesn't litter
 
Posts: 58
Karma: 192
Join Date: Mar 2009
Location: Cologne area, Germany
Device: Pocketbook Touch HD3 (+ an old Hanlin V3)
Thanks Kovid,

I'm novice to Calibre. While I have some history of programming this is my first exposure to Python and I don't have any development environment set up here.

I'm just using the UI to run the recipe and see the result. Adding those lines I believe you suggested does not add any additional data to the output in the jobs overview.

I simply added this to the recipe, not sure if I should have done any modification:

Code:
import sys, logging
logger = logging.getLogger("mechanize")
logger.addHandler(logging.StreamHandler(sys.stdout))
logger.setLevel(logging.DEBUG)
I'd appreciate any help in how and where I see the debug output or some instructions if I need to use any command line or debug mode to be able to do so.
Kleki is offline   Reply With Quote