6c47559eecfd066f3fd6ec6f178fc2b090b8c8ce — Sirn Thanabulpong 1 year, 16 days ago 5307a4c main v2022.9.1
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.
1 files changed, 2 insertions(+), 1 deletions(-)

M fanboi2/cmd/ctl.py
M fanboi2/cmd/ctl.py => fanboi2/cmd/ctl.py +2 -1
@@ 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):

    settings = settings_from_env()
    config = make_configurator(settings)
    wsgi_app = config.make_wsgi_app()