mirror of
https://github.com/pallets-eco/flask-debugtoolbar.git
synced 2026-01-03 12:10:03 -06:00
Let DEBUG_TB_ENABLED take precedence over app.debug
This commit is contained in:
@@ -36,7 +36,7 @@ class DebugToolbarExtension(object):
|
||||
self.debug_toolbars = {}
|
||||
self.hosts = ()
|
||||
|
||||
if not app.debug and not app.config.get('DEBUG_TB_ENABLED'):
|
||||
if not app.config.get('DEBUG_TB_ENABLED', app.debug):
|
||||
return
|
||||
|
||||
if not app.config.get('SECRET_KEY'):
|
||||
|
||||
Reference in New Issue
Block a user