Some examples of Ghostscript and Tesseract warnings/errors were not tagged properly

This commit is contained in:
James R. Barlow
2017-03-28 10:59:53 -07:00
parent 199de96cff
commit 2954e72652
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ def generate_pdfa(pdf_pages, output_file, log, threads=1):
universal_newlines=True)
stdout, _ = p.communicate()
if 'error' in stdout:
if 'error' in stdout or 'ERROR' in stdout:
log.error(stdout)
elif 'overprint mode not set' in stdout:
# Unless someone is going to print PDF/A documents on a
+2
View File
@@ -186,6 +186,8 @@ def tesseract_log_output(log, stdout, input_file):
log.warning(prefix + "unsure about page orientation")
elif 'error' in line.lower() or 'exception' in line.lower():
log.error(prefix + line.strip())
elif 'warning' in line.lower():
log.warning(prefix + line.strip())
elif 'read_params_file' in line.lower():
log.error(prefix + line.strip())
else: