From c08cde0226aba8bb1d5ba69fcb95382e9886fce7 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 9 Dec 2021 11:23:11 +0100 Subject: [PATCH] testing html debugging --- screenless/bureau/bureau.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenless/bureau/bureau.py b/screenless/bureau/bureau.py index c033856..3250fcb 100644 --- a/screenless/bureau/bureau.py +++ b/screenless/bureau/bureau.py @@ -473,6 +473,8 @@ class Bureau(object): html_rendered = weasyprint.HTML(url_fetcher=slowfetch, string=templ.render_unicode(**kwargs)) + print("log level:", str(self.log.getEffectiveLevel())) + print("config:", self.config) if self.log.getEffectiveLevel() == logging.DEBUG: with open("/tmp/debug.html", "w") as html_out: html_out.write(templ.render_unicode(**kwargs))