Bug 689199

Summary: Get error messages appropriately prefixed so that they appear correctly in the CUPS logs
Product: Ghostscript Reporter: Till Kamppeter <till.kamppeter>
Component: GeneralAssignee: Till Kamppeter <till.kamppeter>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: henry.stiles, htl10, shailesh.mistry
Priority: P4    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---
Attachments: Makes error and warning messages get prefixed for correctly appearing in CUPS logs

Description Till Kamppeter 2007-04-29 10:30:36 UTC
The CUPS log files only contain messages appropriate to the user-selected log
level. CUPS does the selection via prefixes in the messages which backends and
filters send to STDERR. Error messages of ESP GhostScript were appropriately
prefixed. With this report I suggest this prefixing for GPL GhostScript, as it
will replace ESP GhostScript in the distros when the merger has completed.

See the attached patch to apply the prefixing.
Comment 1 Till Kamppeter 2007-04-29 10:32:05 UTC
Created attachment 2925 [details]
Makes error and warning messages get prefixed for correctly appearing in CUPS logs
Comment 2 Alex Cherepanov 2007-04-29 11:35:02 UTC
CUPS is not the only consumer of Ghostscript messages.
Font downloaders, spoolers, and PostScript drivers that use bi-directional
communication relay on the traditional form of the error message:
  %%[ Error: ... ]%%

We need an option to select the format.
Comment 3 Till Kamppeter 2007-04-29 12:26:25 UTC
There are two possible solutions: One is allowing to choose between the standard
GhostScript and the CUPS message format by a command line option or let the
pstoraster filter (contrib/cups/pstoraster.in in the merged GhostScript from
http://www.linuxprinting.org/download/printing/esp-gpl-ghostscript-merge/README)
filter and convert the messages.

The second has the advantage of not having any impact on core GhostScript and
not needing to be commercially distributable in GhostScript. The conversion can
probably easily be done with some Perl or sed magic.
Comment 4 Ray Johnston 2007-04-29 18:27:58 UTC
The errorhandler that displays %%[Error... messages can be changed when
gs is used with CUPS.
Comment 5 Ray Johnston 2007-05-01 09:42:44 UTC
This is part of the CUPS migration, so assigning to Till.
Comment 6 Shailesh Mistry 2011-07-20 17:56:32 UTC
Enhancement still missing in Ghostscript 9.03
Comment 7 Henry Stiles 2019-02-27 14:02:58 UTC
After 12 years we think this one can be resolved as 'WONTFIX'