Add an environment variable to enable the spammy SQL diagnostics.
This commit is contained in:
parent
335f19f561
commit
a4448b9a89
1 changed files with 30 additions and 29 deletions
|
@ -72,8 +72,9 @@ if environ.get("FLASK_PROFILER_ENDPOINT"):
|
|||
profiler = flask_profiler.Profiler()
|
||||
profiler.init_app(app)
|
||||
|
||||
# ...and then let's install code to unmangle jinja2 stacktraces for easy_profile...
|
||||
# ...and then let's set up the easy_profile analysis if it's enabled...
|
||||
|
||||
if bool_from_string(environ.get('DBG_SQL_ANALYSIS', False)):
|
||||
try:
|
||||
import inspect as inspectlib
|
||||
import linecache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue