调整server的日志级别

This commit is contained in:
liuwei
2025-05-15 14:28:13 +08:00
parent 6c3459bb09
commit 5ce2c4dc67

View File

@@ -102,11 +102,7 @@ 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