1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/admin/mailu/debug.py

19 lines
416 B
Python
Raw Normal View History

#Note: Currently flask_debugtoolbar is not compatible with flask.
#import flask_debugtoolbar
2021-11-02 16:39:41 +02:00
from werkzeug.middleware.profiler import ProfilerMiddleware
# Debugging toolbar
#toolbar = flask_debugtoolbar.DebugToolbarExtension()
# Profiler
class Profiler(object):
2018-10-18 17:55:07 +02:00
def init_app(self, app):
2021-11-02 16:39:41 +02:00
app.wsgi_app = ProfilerMiddleware(
app.wsgi_app, restrictions=[30]
)
profiler = Profiler()