1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-02-02 03:55:45 +01:00

Fix leftovers from logger transition

This commit is contained in:
2021-06-24 20:47:25 +02:00
parent ecacc8a2a2
commit 47d9fda3b0
2 changed files with 5 additions and 4 deletions

View File

@@ -60,8 +60,9 @@ class RescaleImages(object):
if scaled:
new_width = max(1, new_width)
new_height = max(1, new_height)
self.log('Rescaling image from %dx%d to %dx%d %s', width,
height, new_width, new_height, item.href)
self.log.info('Rescaling image from %dx%d to %dx%d %s',
width, height, new_width, new_height,
item.href)
try:
img = img.resize((new_width, new_height))
except Exception:

View File

@@ -230,14 +230,14 @@ class FlowSplitter(object):
self.split_to_size(tree)
self.tree_map[tree] = self.split_trees
if not lt_found:
self.log('\tNo large trees found')
self.log.info('\tNo large trees found')
self.trees = []
for x in trees:
self.trees.extend(self.tree_map.get(x, [x]))
self.was_split = len(self.trees) > 1
if self.was_split:
self.log('\tSplit into %d parts', len(self.trees))
self.log.info('\tSplit into %d parts', len(self.trees))
self.commit()
def split_on_page_breaks(self, orig_tree):