mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge real logging for oeb2lit.
This commit is contained in:
commit
5584c82d9a
@ -731,7 +731,7 @@ def oeb2lit(opts, opfpath):
|
||||
litpath = os.path.basename(opfpath)
|
||||
litpath = os.path.splitext(litpath)[0] + '.lit'
|
||||
litpath = os.path.abspath(litpath)
|
||||
lit = LitWriter(OEBBook(opfpath))
|
||||
lit = LitWriter(OEBBook(opfpath, logger=logger), logger=logger)
|
||||
with open(litpath, 'wb') as f:
|
||||
lit.dump(f)
|
||||
logger.log_info(_('Output written to ')+litpath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user