From 08eb6f506c92189731df6f9a3a8aded322a0ea4e Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sun, 10 May 2020 21:14:28 +0200 Subject: [PATCH] log viewer for web debugging --- screenless/bureau/ihr/ihrweb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/ihr/ihrweb.py b/screenless/bureau/ihr/ihrweb.py index 8cce76b..d692c94 100644 --- a/screenless/bureau/ihr/ihrweb.py +++ b/screenless/bureau/ihr/ihrweb.py @@ -79,7 +79,8 @@ class IhrApp(Bottle): template = mako.template.Template(filename=templfile, input_encoding='utf-8') basedir = os.path.expanduser("~/.screenless") - logfile = os.path.join(basedir, cfgfile) + logfile = bureau + ".log" + logfile = os.path.join(basedir, logfile) with open(logfile) as log: logdata = log.read()