mirror of https://gitlab.com/litecord/litecord.git
make make_app set app.debug as specified in config
This commit is contained in:
parent
efbcbafce4
commit
c88148271d
4
run.py
4
run.py
|
|
@ -22,8 +22,10 @@ log = Logger('litecord.boot')
|
||||||
def make_app():
|
def make_app():
|
||||||
app = Quart(__name__)
|
app = Quart(__name__)
|
||||||
app.config.from_object(f'config.{config.MODE}')
|
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
|
handler.level = logbook.DEBUG
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue