From b8f6193f7bfa15f2f0c2914959a4ec4ee85fb6e7 Mon Sep 17 00:00:00 2001 From: jtc42 Date: Tue, 19 Nov 2019 19:19:39 +0000 Subject: [PATCH] Fixed debug logging --- openflexure_microscope/api/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 33ea8ec1..5c558afe 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -44,7 +44,8 @@ DEFAULT_LOGFILE = settings_file_path("openflexure_microscope.log") if (__name__ == "__main__") or (not is_gunicorn): # If imported, but not by gunicorn print("Letting sys handle logs") - logging.basicConfig(level=logging.DEBUG) + logger = logging.getLogger() + logger.setLevel(logging.INFO) else: # Direct standard Python logging to file and console root = logging.getLogger()