Add an environment variable to enable the spammy SQL diagnostics.

This commit is contained in:
Ben Rog-Wilhelm 2023-08-09 02:22:34 -05:00
parent 335f19f561
commit a4448b9a89

View file

@ -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