Commit 45c99540 authored by Arnaud Fontaine's avatar Arnaud Fontaine

CUSTOM: Make wkhtmltopdf debugging easier.

parent 07335a6d
......@@ -67,13 +67,13 @@ class Handler(object):
def convert(self, destination_format=None, **kw):
"""Convert a image"""
logger.debug("wkhtmltopdf convert: %s > %s" % (self.file.source_format, destination_format))
output_path = self.makeTempFile(destination_format)
command = self.makeWkhtmltopdfCommandList(
self.convertPathToUrl(self.file.getUrl()),
output_path,
conversion_kw=kw,
)
logger.debug("wkhtmltopdf convert: %s" % ' '.join(command))
stdout, stderr = Popen(
command,
stdout=PIPE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment