debug for html pre-render

workspace
Brendan Howell 4 years ago
parent 6b706839ee
commit e87c138d1e

@ -401,7 +401,7 @@ class Bureau(object):
if self.log.getEffectiveLevel() == logging.DEBUG:
with open("/tmp/debug.html", "w") as html_out:
html_out.write(html_rendered)
html_out.write(templ.render_unicode(**kwargs))
self.log.debug("debug html output at /tmp/debug.html")
html_rendered.write_pdf(pdfpath)

Loading…
Cancel
Save