Let DEBUG_TB_ENABLED take precedence over app.debug

This commit is contained in:
Matt Good
2012-01-31 11:02:30 -08:00
parent e5feff5884
commit 89fbe2e6b5

View File

@@ -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'):