diff --git a/ebook_converter/ebooks/conversion/plugins/html_input.py b/ebook_converter/ebooks/conversion/plugins/html_input.py index 05571e5..7aa2d6d 100644 --- a/ebook_converter/ebooks/conversion/plugins/html_input.py +++ b/ebook_converter/ebooks/conversion/plugins/html_input.py @@ -237,7 +237,7 @@ class HTMLInput(InputFormatPlugin): if not os.access(link, os.R_OK): return link_ if os.path.isdir(link): - self.log.warning(link_, 'is a link to a directory. Ignoring.') + self.log.warning('%s is a link to a directory. Ignoring.', link_) return link_ if link not in self.added_resources: bhref = os.path.basename(link) diff --git a/ebook_converter/ebooks/mobi/mobiml.py b/ebook_converter/ebooks/mobi/mobiml.py index ad740cf..05c4156 100644 --- a/ebook_converter/ebooks/mobi/mobiml.py +++ b/ebook_converter/ebooks/mobi/mobiml.py @@ -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:] diff --git a/ebook_converter/ebooks/mobi/writer2/indexer.py b/ebook_converter/ebooks/mobi/writer2/indexer.py index a47c045..6e3b564 100644 --- a/ebook_converter/ebooks/mobi/writer2/indexer.py +++ b/ebook_converter/ebooks/mobi/writer2/indexer.py @@ -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)) diff --git a/ebook_converter/ebooks/odt/input.py b/ebook_converter/ebooks/odt/input.py index 602927f..a0708f0 100644 --- a/ebook_converter/ebooks/odt/input.py +++ b/ebook_converter/ebooks/odt/input.py @@ -18,6 +18,7 @@ from ebook_converter.ebooks.oeb.base import _css_logger from ebook_converter import polyglot + class Extract(ODF2XHTML): def extract_pictures(self, zf):