From 8418945792de683c64010ac23f78f239a60dcbf1 Mon Sep 17 00:00:00 2001 From: kthoden Date: Wed, 20 May 2020 20:20:33 +0200 Subject: [PATCH] Logging --- src/eoatex2imxml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eoatex2imxml.py b/src/eoatex2imxml.py index f987b59..322288b 100755 --- a/src/eoatex2imxml.py +++ b/src/eoatex2imxml.py @@ -1096,12 +1096,15 @@ def bibl_info_from_xml( ): if xmlTree.find(".//EOAbibliographydatabase") is not None: bib_database = xmlTree.find(".//EOAbibliographydatabase").text + logging.info("The bibliography database is %s", bib_database) else: return None bib_type = xmlTree.find(".//EOAbibliographytype").text if bib_type not in ["monograph", "anthology", "monograph-numeric", "anthology-numeric"]: raise( Exception(f"The bibtype must be one of {','.join[bib_type]}. Exiting") ) + else: + logging.info("The bibliography type is %s", bib_type) return (bib_type, bib_database) @@ -1447,7 +1450,7 @@ def add_bibliography_to_xml( # If Bibliography-Type is anthology search for EOAbibliography and make one per chapter elif bib_type == "anthology": for intChapterNumber, xmlChapter in enumerate(xmlChapters, start = 1): - logging.debug(f"Looking at chapter {intChapterNumber}.") + logging.info(f"Looking at chapter {intChapterNumber}.") keyword_to_print_bibl_el = insert_bibliographies( xmlChapter, xmlChapter.get("language"),