File tree Expand file tree Collapse file tree 2 files changed +15
-61
lines changed Expand file tree Collapse file tree 2 files changed +15
-61
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,21 @@ def serve_audio(filename):
146146 # We're saving the zeeguu.core.app so we can refer to the config from deep in the code...
147147 zeeguu .core .app = app
148148
149+ # Flask Monitoring Dashboard
150+ try :
151+ import flask_monitoringdashboard as dashboard
152+
153+ dashboard .config .init_from (envvar = "FLASK_MONITORING_DASHBOARD_CONFIG" )
154+
155+ from zeeguu .core .model import Session
156+
157+ dashboard .config .get_group_by = lambda : Session .find (request = flask .request ).user_id
158+ dashboard .bind (app = app )
159+
160+ warning ("*** Flask Monitoring Dashboard enabled" )
161+ except Exception as e :
162+ warning (f"*** Flask Monitoring Dashboard not available: { e } " )
163+
149164 # print(app.config)
150165 # Log the current git commit hash
151166 try :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments