diff --git a/Module/Main.py b/Module/Main.py index b36a48b..e7f5faf 100644 --- a/Module/Main.py +++ b/Module/Main.py @@ -34,7 +34,7 @@ def _run_flask_role(): port = int(os.getenv("FLASK_COMM_PORT", "34566")) # 固定端口的兜底仍是 34567 app = get_app() bootstrap_server_side_effects() - app.run(host="0.0.0.0", port=port + 1, debug=False, use_reloader=False, threaded=False) + app.run(host="0.0.0.0", port=port + 1, debug=False, use_reloader=False, threaded=True) if "--role=flask" in sys.argv: _run_flask_role() @@ -48,9 +48,6 @@ def main(arg): # 项目入口 if __name__ == "__main__": - # 禁止flask相关输出写入日志 - logging.getLogger('werkzeug').disabled = True - # 清空日志 LogManager.clearLogs() diff --git a/Module/__pycache__/DeviceInfo.cpython-312.pyc b/Module/__pycache__/DeviceInfo.cpython-312.pyc index f35294f..64fcdab 100644 Binary files a/Module/__pycache__/DeviceInfo.cpython-312.pyc and b/Module/__pycache__/DeviceInfo.cpython-312.pyc differ diff --git a/Module/__pycache__/FlaskService.cpython-312.pyc b/Module/__pycache__/FlaskService.cpython-312.pyc index 3e95a69..734e202 100644 Binary files a/Module/__pycache__/FlaskService.cpython-312.pyc and b/Module/__pycache__/FlaskService.cpython-312.pyc differ diff --git a/Module/__pycache__/FlaskSubprocessManager.cpython-312.pyc b/Module/__pycache__/FlaskSubprocessManager.cpython-312.pyc index e8d8023..60a96bc 100644 Binary files a/Module/__pycache__/FlaskSubprocessManager.cpython-312.pyc and b/Module/__pycache__/FlaskSubprocessManager.cpython-312.pyc differ diff --git a/Utils/__pycache__/ThreadManager.cpython-312.pyc b/Utils/__pycache__/ThreadManager.cpython-312.pyc index 4604693..1bc0c8c 100644 Binary files a/Utils/__pycache__/ThreadManager.cpython-312.pyc and b/Utils/__pycache__/ThreadManager.cpython-312.pyc differ diff --git a/script/__pycache__/ScriptManager.cpython-312.pyc b/script/__pycache__/ScriptManager.cpython-312.pyc index df902cb..964aef0 100644 Binary files a/script/__pycache__/ScriptManager.cpython-312.pyc and b/script/__pycache__/ScriptManager.cpython-312.pyc differ