调整server的日志级别
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user