[IMP] base: log wkhtmltopdf error

If wkthmltopdf silently raises an error without any error code, there was
previously nothing displayed to help debugging.

The error is now logged as a warning.
This commit is contained in:
Christophe Matthieu
2018-08-13 17:09:28 +02:00
parent 65e7ce0bb2
commit cad272d5b6
@@ -404,6 +404,9 @@ class IrActionsReport(models.Model):
else:
message = _('Wkhtmltopdf failed (error code: %s). Message: %s')
raise UserError(message % (str(process.returncode), err[-1000:]))
else:
if err:
_logger.warning('wkhtmltopdf: %s' % err)
except:
raise