1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-11 15:43:37 +02:00

Added first portion of logging adaptation.

Things may be broken at this point - there are still several modules to
be adapted.
This commit is contained in:
2021-06-22 22:04:43 +02:00
parent 6f898ab23e
commit 546cc26652
36 changed files with 326 additions and 316 deletions

View File

@@ -20,7 +20,7 @@ class LRFInput(InputFormatPlugin):
from ebook_converter.ebooks.lrf.input import MediaType, Styles, \
TextBlock, Canvas, ImageBlock, RuledLine
self.log = log
self.log('Generating XML')
self.log.info('Generating XML')
from ebook_converter.ebooks.lrf.lrfparser import LRFDocument
d = LRFDocument(stream)
d.parse()
@@ -50,7 +50,7 @@ class LRFInput(InputFormatPlugin):
if imgstr:
plot_map[ro] = imgstr[0].get('file')
self.log('Converting XML to HTML...')
self.log.info('Converting XML to HTML...')
with open(pkg_resources.
resource_filename('ebook_converter',