odoo/odoo#198586

Created by fw-bot
Merged at 1c896c5da71b58b382269fe6cca556f4a61e4d5d

Statuses:

label
odoo-dev:17.0-16.0-imp_iot_gs_log-lse-417468-fw
head
a5662ce7f9c40458a1dd94f38d99c380a235a47a
merged
8 months ago by Loan Sens (lse)
odoo/odoo
16.0 #198480
17.0 #198586
saas-17.4 #198635
18.0 #198664
saas-18.1 #198677
saas-18.2 #198686
saas-18.3
saas-18.4
19.0
master #198700

[FW][FIX] hw_drivers: add more logs on ghostscript printing

Before this commit:

Failing to print for whatever reason would yield some unhelpful error message like:
ghostscript._gsprint.GhostscriptError: Fatal
the error details is hidden within the stderr.

Note: in general case, any stderr is logged in the IoT logs due to ExceptionLogger, however it's not the case here (probably due to some ghostscript wrapping).

After this commit:
A more explicit error message with details regarding the error and some relevant debug information to cross compare

opw-4481596

Forward-Port-Of: #198480