From ab79c2c9098b0a51ab2ec925a7f61761e23f73d2 Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 30 Nov 2023 12:03:06 +0100 Subject: [PATCH] adding flask logger --- octomode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/octomode.py b/octomode.py index e46140e..14b401f 100755 --- a/octomode.py +++ b/octomode.py @@ -83,12 +83,12 @@ def md_to_html(md_pad_content, name): app_root = get_app_root() template_url = f"{ app_hostname }{ app_root }/{ name }/template.html" md_url = f"{ app_hostname }{ app_root }/{ name }/pad.md" - print(template_url) - print(md_url) + APP.logger.info("template_url", template_url) + APP.logger.info("md_url", md_url) result = subprocess.run(["pandoc", "--from", "markdown", "--to", "html", "--template", f"{ template_url }", md_url], capture_output=True, text=True) html = result.stdout - print(result.stderr) - print(html) + APP.logger.info("html", html) + APP.logger.info("result.stderr", result.stderr) # Convert Markdown to HTML, using the default pandoc template # ----------------------------------------------------------------------------------