关闭flask日志

This commit is contained in:
2025-11-07 14:31:07 +08:00
parent a9c9e39143
commit fa539aef73
7 changed files with 14 additions and 1 deletions

View File

@@ -21,6 +21,13 @@ from script.ScriptManager import ScriptManager
from Entity.Variables import addModelToAnchorList, wdaFunctionPort
import Entity.Variables as ev
from Utils.JsonUtils import JsonUtils
import logging
for name in ('werkzeug', 'werkzeug.serving'):
log = logging.getLogger(name)
log.disabled = True
log.propagate = False
log.handlers.clear()
app = Flask(__name__)
CORS(app)