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
Dimitri Huisman 5bee3c031b
Update all dependencies.
All changes were recreated due to deprecated functionalities introduced
by updating the dependencies
2023-10-31 19:55:58 +00:00

19 lines
416 B
Python

#Note: Currently flask_debugtoolbar is not compatible with flask.
#import flask_debugtoolbar
from werkzeug.middleware.profiler import ProfilerMiddleware
# Debugging toolbar
#toolbar = flask_debugtoolbar.DebugToolbarExtension()
# Profiler
class Profiler(object):
def init_app(self, app):
app.wsgi_app = ProfilerMiddleware(
app.wsgi_app, restrictions=[30]
)
profiler = Profiler()