Some completeness in logger output

This commit is contained in:
Veronica K. B. Olsen
2020-06-10 17:19:52 +02:00
parent b88fc2f1ca
commit 29950e34a4
10 changed files with 25 additions and 12 deletions
+1
View File
@@ -1041,6 +1041,7 @@ class NWProject():
return
# Then check the files in the data folder
logger.debug("Checking files in project content folder")
orphanFiles = []
for fileItem in listdir(self.projContent):
if not fileItem.endswith(".nwd"):
+2 -2
View File
@@ -115,12 +115,12 @@ class NWSpellCheck():
if not path.isfile(projectDict):
return
try:
with open(projectDict,mode="r",encoding="utf-8") as wordsFile:
logger.debug("Loading project word list")
with open(projectDict, mode="r", encoding="utf-8") as wordsFile:
for theLine in wordsFile:
theLine = theLine.strip()
if len(theLine) > 0 and theLine not in self.PROJW:
self.PROJW.append(theLine)
logger.debug("Project word list")
logger.debug("Project word list contains %d words" % len(self.PROJW))
except Exception as e:
logger.error("Failed to load project word list")