From b8a8160644006ca5c02f1270b31b198fa05bfe06 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 22 May 2020 10:23:13 +0100 Subject: [PATCH] Fixed log view file path --- openflexure_microscope/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index bc7e635d..bb276986 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -152,7 +152,7 @@ def err_log(): """ timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S") return send_file( - DEFAULT_LOGFILE, + ROOT_LOGFILE, as_attachment=True, attachment_filename="openflexure_microscope_{}.log".format(timestamp), )