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), )