调整server的日志级别

This commit is contained in:
liuwei
2025-05-15 14:23:49 +08:00
parent c0ae28143d
commit 6c3459bb09

View File

@@ -102,7 +102,11 @@ class DashboardServer:
app.secret_key = "stats_dashboard_secret_key"
# 禁用模板缓存使修改HTML文件后立即生效
app.config['TEMPLATES_AUTO_RELOAD'] = True
# 设置Werkzeug日志级别为DEBUG避免在INFO级别显示访问日志
import logging
logging.getLogger('werkzeug').setLevel(logging.DEBUG)
# 将dashboard_server实例设置为app的属性
app.dashboard_server = self