mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-04-30 02:34:05 +02:00
Fix couple of logging errors
This commit is contained in:
@@ -452,7 +452,7 @@ class MobiMLizer(object):
|
||||
try:
|
||||
item = self.oeb.manifest.hrefs[base.urlnormalize(href)]
|
||||
except:
|
||||
self.oeb.logger.warning('Failed to find image:', href)
|
||||
self.oeb.logger.warning('Failed to find image: %s', href)
|
||||
else:
|
||||
try:
|
||||
width, height = identify(item.data)[1:]
|
||||
|
||||
@@ -444,8 +444,8 @@ class Indexer(object): # {{{
|
||||
if self.is_periodical and self.masthead_offset is None:
|
||||
raise ValueError('Periodicals must have a masthead')
|
||||
|
||||
self.log('Generating MOBI index for a %s', 'periodical' if
|
||||
self.is_periodical else 'book')
|
||||
self.log.info('Generating MOBI index for a %s', 'periodical' if
|
||||
self.is_periodical else 'book')
|
||||
self.is_flat_periodical = False
|
||||
if self.is_periodical:
|
||||
periodical_node = next(iter(oeb.toc))
|
||||
|
||||
Reference in New Issue
Block a user