diff --git a/src/calibre/ebooks/pdb/palmdoc/writer.py b/src/calibre/ebooks/pdb/palmdoc/writer.py index 2a46308db8..8ca83a8270 100644 --- a/src/calibre/ebooks/pdb/palmdoc/writer.py +++ b/src/calibre/ebooks/pdb/palmdoc/writer.py @@ -48,7 +48,7 @@ class Writer(FormatWriter): writer = TXTMLizer(log) txt = writer.extract_content(oeb_book, opts) - log.debug('\tReplacing newlines with selected type...') + self.log.debug('\tReplacing newlines with selected type...') txt = specified_newlines(TxtNewlines(opts.newline).newline, txt).encode(self.opts.output_encoding, 'replace') txt_length = len(txt) diff --git a/src/calibre/ebooks/pdb/ztxt/writer.py b/src/calibre/ebooks/pdb/ztxt/writer.py index 22f7bf002c..19824fce91 100644 --- a/src/calibre/ebooks/pdb/ztxt/writer.py +++ b/src/calibre/ebooks/pdb/ztxt/writer.py @@ -53,7 +53,7 @@ class Writer(FormatWriter): writer = TXTMLizer(log) txt = writer.extract_content(oeb_book, opts) - log.debug('\tReplacing newlines with selected type...') + self.log.debug('\tReplacing newlines with selected type...') txt = specified_newlines(TxtNewlines(opts.newline).newline, txt).encode(self.opts.output_encoding, 'replace') txt_length = len(txt)