临时提交
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user