View Single Post
Old 06-23-2017, 06:42 AM   #25
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,481
Karma: 28000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@chaley: The restart logic is in gui2/main.py around line 394 you can stick some print statements in there to see what is happening. (You will need to print to a file somewhere, as stdout/stderr are redirected to NUL).

print >>open('c:/log.txt', 'a'), 'some debug stuff'

or

from calibre import prints
prints('some debug stuff', file=open('c:/log.txt', 'a'))
kovidgoyal is offline   Reply With Quote