From 0ff0d2f8d16a38bb0216cc848cff7baed6f08994 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 27 Dec 2020 16:19:05 -0800 Subject: [PATCH] Remove PDF/A overprint debug message Since we currently log all of a process's output at debug it's redundant to log this separate message. --- src/ocrmypdf/_exec/ghostscript.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ocrmypdf/_exec/ghostscript.py b/src/ocrmypdf/_exec/ghostscript.py index d96cd3c3..2db45528 100644 --- a/src/ocrmypdf/_exec/ghostscript.py +++ b/src/ocrmypdf/_exec/ghostscript.py @@ -254,6 +254,8 @@ def generate_pdfa( raise SubprocessOutputError('Ghostscript PDF/A rendering failed') from e else: stderr = p.stderr + # If there is an error we log the whole stderr, except for filtering + # duplicates. if _gs_error_reported(stderr): last_part = None repcount = 0 @@ -266,11 +268,3 @@ def generate_pdfa( else: repcount += 1 last_part = part - elif 'overprint mode not set' in stderr: - # Unless someone is going to print PDF/A documents on a - # magical sRGB printer I can't see the removal of overprinting - # being a problem.... - log.debug( - "Ghostscript had to remove PDF 'overprinting' from the " - "input file to complete PDF/A conversion. " - )