From 0b7e0851b1de41bd6e4779fdfdea3933a53a8732 Mon Sep 17 00:00:00 2001 From: kthoden Date: Fri, 25 Sep 2020 13:47:33 +0200 Subject: [PATCH] Clean up logging --- src/imxml2epub.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/imxml2epub.py b/src/imxml2epub.py index 410a26d..3c35199 100755 --- a/src/imxml2epub.py +++ b/src/imxml2epub.py @@ -1055,7 +1055,7 @@ class FootnoteError(Exception): for xmlChapter in xmlChapters: groupings = libeoaconvert.get_bigfoot_data(xmlChapter) xmlFootnotes = xmlChapter.xpath(".//note[not(ancestor::opener)]") - logging.info("Here come the footnotes. Found " + str(len(xmlFootnotes))) + logging.info(f"Found {str(len(xmlFootnotes))} footnotes in this chapter.") has_old = 0 != len(xmlFootnotes) has_new = 0 != len( [ # flatten the association list whose values are lists, so we can take the length @@ -1757,7 +1757,6 @@ class FootnoteError(Exception): target_string = dictFigures[subref_target] strResult += f"{target_string}{subref_tail}" elif reference_type == "number": - logging.info("XXXXXXXX") strResult = "!!! Cross Reference !!!" xmlReferenceLabel = xmlReference.find("Label") @@ -1798,7 +1797,6 @@ class FootnoteError(Exception): else: logging.error("Found unknown reference type: %s. Exiting", reference_type) sys.exit(0) - logging.info("XXXXXXXX") xmlReference.clear() if args.hyperimage and hitarget_id and reference_type in ["collage", "number"]: hyperimage_link = f"{publication_landingpage[:-11]}/{intChapterNumber}/index.html#{hitarget_id}"