From 6c47559eecfd066f3fd6ec6f178fc2b090b8c8ce Mon Sep 17 00:00:00 2001 From: Sirn Thanabulpong Date: Wed, 7 Sep 2022 18:30:41 +0900 Subject: [PATCH] Properly setup logging in ctl setup_logger used to be called as part of wsgi.py, but since we've dropped wsgi.py in favor for directly calling config.make_wsgi_app setup_logger was not properly added to ctl.py resulting in the log be completely absent. --- fanboi2/cmd/ctl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fanboi2/cmd/ctl.py b/fanboi2/cmd/ctl.py index a0904c7..22a24b9 100644 --- a/fanboi2/cmd/ctl.py +++ b/fanboi2/cmd/ctl.py @@ -43,7 +43,7 @@ def run_serve(args): """Run the web server for the application.""" from waitress import serve as waitress_serve - from .. import make_configurator + from .. import make_configurator, setup_logger from ..settings import settings_from_env if args.reload: @@ -55,6 +55,7 @@ def run_serve(args): hupper.start_reloader("fanboi2.cmd.ctl.main") settings = settings_from_env() + setup_logger(settings) config = make_configurator(settings) wsgi_app = config.make_wsgi_app() -- 2.45.2