diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index 1cb78e3..cf33078 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -399,13 +399,12 @@ class Bureau(object): html_rendered = weasyprint.HTML(url_fetcher=slowfetch, string=templ.render_unicode(**kwargs)) - if self.log.getEffectiveLevel == logging.DEBUG: + if self.log.getEffectiveLevel() == logging.DEBUG: with open("/tmp/debug.html", "w") as html_out: html_out.write(html_rendered) self.log.debug("debug html output at /tmp/debug.html") html_rendered.write_pdf(pdfpath) - self.log.debug("wrote PDF to:", pdfpath) subprocess.call("lpr -o sides=two-sided-long-edge -o InputSlot=Upper " + pdfpath, shell=True)