From c88148271d76276ea96efb9c918988e23caeee34 Mon Sep 17 00:00:00 2001 From: slice Date: Tue, 19 Jun 2018 18:13:13 -0700 Subject: [PATCH] make make_app set app.debug as specified in config --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 36f21ff..3fba4a2 100644 --- a/run.py +++ b/run.py @@ -22,8 +22,10 @@ log = Logger('litecord.boot') def make_app(): app = Quart(__name__) app.config.from_object(f'config.{config.MODE}') + is_debug = app.config.get('DEBUG', False) + app.debug = is_debug - if app.config['DEBUG']: + if is_debug: handler.level = logbook.DEBUG return app